open-codetree / additional.d.ts
matt HOFFNER
init
3c3f089
raw
history blame contribute delete
472 Bytes
import "iron-session";
import { User } from "./graphql/generated/graphql";
import { OauthInput, OauthProvider } from "./store/features/authSlice";
declare global {
interface Window {
withOauth: (input: OauthInput, provider: OauthProvider) => void;
}
}
declare module "iron-session" {
interface IronSessionData {
user?: {
message?: string;
token?: string | null;
status: boolean;
data: User;
isLoggedIn?: boolean;
};
}
}