fix(nuxt): name is an optional prop for <NuxtLayout>

This commit is contained in:
Daniel Roe 2023-07-31 13:22:16 +01:00
parent 1b1f194e64
commit 0d9a0b7538

View File

@ -77,7 +77,7 @@ export default defineComponent({
}
}
}) as unknown as DefineComponent<{
name: unknown extends PageMeta['layout'] ? MaybeRef<string | false> : PageMeta['layout']
name?: unknown extends PageMeta['layout'] ? MaybeRef<string | false> : PageMeta['layout']
}>
const LayoutProvider = defineComponent({