From ef237081cc9b87c858e9de8e35b523f93ac74fd3 Mon Sep 17 00:00:00 2001 From: Ninja Date: Mon, 12 Aug 2024 15:06:50 -0700 Subject: [PATCH] Update User type to match db schema (#399) * Update index.d.ts * Update index.d.ts --- stubs/inertia-react-ts/resources/js/types/index.d.ts | 2 +- stubs/inertia-vue-ts/resources/js/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/inertia-react-ts/resources/js/types/index.d.ts b/stubs/inertia-react-ts/resources/js/types/index.d.ts index 688ce282d..01949cad4 100644 --- a/stubs/inertia-react-ts/resources/js/types/index.d.ts +++ b/stubs/inertia-react-ts/resources/js/types/index.d.ts @@ -2,7 +2,7 @@ export interface User { id: number; name: string; email: string; - email_verified_at: string; + email_verified_at?: string; } export type PageProps = Record> = T & { diff --git a/stubs/inertia-vue-ts/resources/js/types/index.d.ts b/stubs/inertia-vue-ts/resources/js/types/index.d.ts index 688ce282d..01949cad4 100644 --- a/stubs/inertia-vue-ts/resources/js/types/index.d.ts +++ b/stubs/inertia-vue-ts/resources/js/types/index.d.ts @@ -2,7 +2,7 @@ export interface User { id: number; name: string; email: string; - email_verified_at: string; + email_verified_at?: string; } export type PageProps = Record> = T & {