Skip to content

Commit 27a88ec

Browse files
committed
fix(client): make layouts client config optional (close #1494)
1 parent 7d9db9b commit 27a88ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/client/src/resolvers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export const resolvers = reactive({
3232
...prev,
3333
...item.layouts,
3434
}),
35-
{} as Layouts,
36-
),
35+
{},
36+
) as Layouts,
3737

3838
/**
3939
* Merge the head config in frontmatter and site locale

packages/client/src/types/clientConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface ClientConfig {
2424
/**
2525
* Layout components
2626
*/
27-
layouts?: Layouts
27+
layouts?: Partial<Layouts>
2828

2929
/**
3030
* Components to be placed directly into the root node of vue app

0 commit comments

Comments
 (0)