Converted to TS, add import
This commit is contained in:
Vendored
+27
@@ -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 {}
|
||||
}
|
||||
Reference in New Issue
Block a user