Skip to content

Commit

Permalink
fix(module): make documentDriven configs optional (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 20, 2022
1 parent af8c7b8 commit 7b74e70
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,18 @@ export interface ModuleOptions {
defaultLocale?: string
/**
* Document-driven mode config
*
* @default false
*/
documentDriven: boolean | {
page: boolean
navigation: boolean
surround: boolean
globals: {
page?: boolean
navigation?: boolean
surround?: boolean
globals?: {
[key: string]: QueryBuilderParams
}
layoutFallbacks: string[]
injectPage: boolean
layoutFallbacks?: string[]
injectPage?: boolean
}
}

Expand Down

0 comments on commit 7b74e70

Please sign in to comment.