diff --git a/resources/js/global.d.ts b/resources/js/global.d.ts deleted file mode 100644 index a0c22ab20..000000000 --- a/resources/js/global.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -declare module "@inertiajs/core" { - export interface InertiaConfig { - sharedPageProps: { - appName: string - } - // flashDataType: { - // toast?: { type: "success" | "error"; message: string }; - // }; - errorValueType: string[]; - } -} diff --git a/resources/js/inertia.d.ts b/resources/js/inertia.d.ts new file mode 100644 index 000000000..0c547b3ae --- /dev/null +++ b/resources/js/inertia.d.ts @@ -0,0 +1,13 @@ +import "@inertiajs/core"; + +declare module "@inertiajs/core" { + export interface InertiaConfig { + sharedPageProps: { + appName: string; + }; + // flashDataType: { + // toast?: { type: "success" | "error"; message: string }; + // }; + errorValueType: string[]; + } +}