UNPKG

outers

Version:

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

37 lines (36 loc) 953 B
type str = string; type int = number; type obj = object; type bool = boolean; export default interface RenderResponseInterface { response: { setHeader: (name: str, value: str) => void; status: (statusCode: int) => { render: (Filename: unknown, Variables?: obj) => void; cookie: (name: str, value: str, options: cookieOptions) => { render: (Filename: unknown, Variables?: obj) => void; }; }; cookie: (name: str, value: str, options: cookieOptions) => { render: (Filename: unknown, Variables?: obj) => void; }; }; statusCode: int; FileName?: str; Variables?: obj; cookieData?: [ { name: str; value: str; options: cookieOptions; } ]; contentType?: str; } interface cookieOptions { maxAge: int; httpOnly: bool; secure: bool; sameSite: str; } export {};