site-panzai/.nuxt/types/layouts.d.ts

16 lines
714 B
TypeScript
Raw Normal View History

2026-11-13 13:57:04 +01:00
import type { ComputedRef, MaybeRef } from 'vue'
type ComponentProps<T> = T extends new(...args: any) => { $props: infer P } ? NonNullable<P>
: T extends (props: infer P, ...args: any) => any ? P
: {}
declare module 'nuxt/app' {
interface NuxtLayouts {
admin: ComponentProps<typeof import("/Users/1laan/Documents/KNR Korp/CLIENT/PANZAI/panzai-demo/layouts/admin.vue").default>,
default: ComponentProps<typeof import("/Users/1laan/Documents/KNR Korp/CLIENT/PANZAI/panzai-demo/layouts/default.vue").default>,
}
export type LayoutKey = keyof NuxtLayouts extends never ? string : keyof NuxtLayouts
interface PageMeta {
layout?: MaybeRef<LayoutKey | false> | ComputedRef<LayoutKey | false>
}
}