UNPKG

outers

Version:

outers - a all in one package for your day to day use

41 lines (40 loc) 1.01 kB
type str = string; type int = number; type obj = object; type bool = boolean; export default interface FileResponseInterfaces { response: { setHeader: (name: str, value: str) => void; status: (statusCode: int) => { sendFile: (Filename: unknown, { root }: { root: str; }) => void; cookie: (name: str, value: str, options: cookieOptions) => { sendFile: (Filename: unknown, { root }: { root: str; }) => void; }; }; cookie: (name: str, value: str, options: cookieOptions) => { json: (data: obj) => void; }; }; statusCode: int; Filename?: str; rootName: str; cookieData?: [ { name: str; value: str; options: cookieOptions; } ]; contentType?: str; } interface cookieOptions { maxAge: int; httpOnly: bool; secure: bool; sameSite: str; } export {};