@mazzlabs/prisma-session-store-fix
Version:
Prisma express-session store
11 lines (10 loc) • 511 B
TypeScript
import type { SessionData } from 'express-session';
import type { PartialDeep } from 'type-fest';
import type { IOptions } from '../../@types';
/**
* Determines the TTL (Time to Live) for a given session with given options
* @param options the options to determine the TTL
* @param session the session data
* @param sid the id of the current session
*/
export declare const getTTL: <M extends string>(options: Pick<IOptions<M>, "ttl">, session: PartialDeep<SessionData>, sid: string) => number;