UNPKG

outers

Version:

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

39 lines (38 loc) 918 B
type str = string; type obj = object; type int = number; type bool = boolean; export default interface JSONresponseInterface { response: { setHeader: (name: str, value: str) => void; status: (statusCode: int) => { json: (data: obj) => void; cookie: (name: str, value: str, options: cookieOptions) => { json: (data: obj) => void; }; }; cookie: (name: str, value: str, options: cookieOptions) => { json: (data: obj) => void; }; }; status: bool; statusCode: int; Title: str; message: str; data: obj | undefined | unknown; cookieData?: [ { name: str; value: str; options: cookieOptions; } ]; contentType?: str; } interface cookieOptions { maxAge: int; httpOnly: bool; secure: bool; sameSite: str; } export {};