From bcca7aff34a0225be1f9b5d2e6d27430e5ccb037 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Mon, 22 Nov 2021 01:59:52 +0000 Subject: [PATCH] De CRLF @types/express --- server/@types/express/index.d.ts | 54 ++++++++++++++++---------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/server/@types/express/index.d.ts b/server/@types/express/index.d.ts index 405aa6b54..25d980514 100644 --- a/server/@types/express/index.d.ts +++ b/server/@types/express/index.d.ts @@ -1,27 +1,27 @@ -import { Session, SessionData } from "express-session"; -import { SYMBOL_TachiAPIAuth, SYMBOL_TachiData } from "../../src/lib/constants/tachi"; -import { TachiRequestData, TachiSessionData } from "../../src/utils/types"; -import { APITokenDocument } from "tachi-common"; - -export {}; - -// this only exists for testing context - it doesn't seem to work properly otherwise. -declare module "express-session" { - // Inject additional properties on express-session - interface SessionData { - tachi: TachiSessionData; - } -} - -declare global { - namespace Express { - interface Request { - session: Session & Partial; - - [SYMBOL_TachiData]?: Partial; - // even though this is technically *not* present on every request - // it's always assigned in the main router, so its functionally equivalent. - [SYMBOL_TachiAPIAuth]: APITokenDocument; - } - } -} +import { Session, SessionData } from "express-session"; +import { SYMBOL_TachiAPIAuth, SYMBOL_TachiData } from "../../src/lib/constants/tachi"; +import { TachiRequestData, TachiSessionData } from "../../src/utils/types"; +import { APITokenDocument } from "tachi-common"; + +export {}; + +// this only exists for testing context - it doesn't seem to work properly otherwise. +declare module "express-session" { + // Inject additional properties on express-session + interface SessionData { + tachi: TachiSessionData; + } +} + +declare global { + namespace Express { + interface Request { + session: Session & Partial; + + [SYMBOL_TachiData]?: Partial; + // even though this is technically *not* present on every request + // it's always assigned in the main router, so its functionally equivalent. + [SYMBOL_TachiAPIAuth]: APITokenDocument; + } + } +}