Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit cb02ef2

Browse files
author
Oliver Emery
authored
fix(types): allow async function for additionalPages (#30)
1 parent 20bf7ea commit cb02ef2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/vuepress-types/types/plugin.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export interface PluginOptionAPI {
5858
>
5959
extendPageData?: (page: Page) => void | Promise<void>
6060
clientRootMixin?: string
61-
additionalPages?: Partial<PageOptions>[] | Promise<Partial<PageOptions>[]>
61+
additionalPages?:
62+
| Partial<PageOptions>[]
63+
| (() => Promise<Partial<PageOptions>[]>)
6264
globalUIComponents?: string | string[]
6365
extendCli?: (cli: CAC) => void
6466
multiple?: boolean

0 commit comments

Comments
 (0)