refactor(typing): rename file with nuxt-auth definition override
This commit is contained in:
parent
7e300734d8
commit
70cc843f15
10
typings/auth.d.ts
vendored
Normal file
10
typings/auth.d.ts
vendored
Normal file
@ -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;
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
import type { SessionData } from "#auth";
|
||||
import { IUser } from "~/models/user";
|
||||
|
||||
declare module "#auth" {
|
||||
export interface SessionData {
|
||||
token?: string;
|
||||
user?: IUser;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user