From 70cc843f15ab8d8d0cdf8b53c99ec7ce31954589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sat, 9 Dec 2023 17:21:24 -0500 Subject: [PATCH] refactor(typing): rename file with nuxt-auth definition override --- typings/auth.d.ts | 10 ++++++++++ typings/sessionData.ts | 9 --------- 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 typings/auth.d.ts delete mode 100644 typings/sessionData.ts diff --git a/typings/auth.d.ts b/typings/auth.d.ts new file mode 100644 index 0000000..95ab118 --- /dev/null +++ b/typings/auth.d.ts @@ -0,0 +1,10 @@ +import { IUser } from "~/models/user"; +import { SessionData as SDI } from "#auth"; + +declare module "#auth" { + export interface SessionData extends SDI { + token?: string; + user?: IUser; + } + export type WrappedSessionData = SessionData; +} diff --git a/typings/sessionData.ts b/typings/sessionData.ts deleted file mode 100644 index 49141fc..0000000 --- a/typings/sessionData.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { SessionData } from "#auth"; -import { IUser } from "~/models/user"; - -declare module "#auth" { - export interface SessionData { - token?: string; - user?: IUser; - } -}