refactor(typing): extend nuxt-auth's sessionData
type
This commit is contained in:
parent
66cfee819d
commit
98d93f9178
9
typings/sessionData.ts
Normal file
9
typings/sessionData.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
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