Converted to TS, add import

This commit is contained in:
2026-04-03 18:14:42 +10:00
parent 89135a554a
commit 063a393168
23 changed files with 644 additions and 90 deletions
+27
View File
@@ -0,0 +1,27 @@
declare global {
const route: typeof import('ziggy-js')['route']
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
route: typeof import('ziggy-js')['route']
}
}
export interface User {
id: number
name: string
email: string
email_verified_at: string | null
}
export type SharedProps = import('@inertiajs/core').PageProps & {
auth: {
user: User | null
isLoggedIn: boolean
}
}
declare module '@inertiajs/vue3' {
interface PageProps extends SharedProps {}
}