UNPKG

@hv-kit/hexpress

Version:

facilitates typescript backend development with express

24 lines 1.48 kB
export declare function setTokenAuth(val: any, expires?: number): void; export declare function getTokenAuth(): string | undefined; export declare const tokenAuth: string | undefined; export declare function getHeaderRequest(headers?: any, others?: any): any; export declare function cleanResponse(dataResponse: any, type?: 'all' | 'single' | 'exists' | 'edit' | 'edit-multiple'): any; export declare function cleanResponseLogin(dataResponse: any, type?: 'all' | 'single' | 'exists' | 'edit' | 'edit-multiple'): any; declare function cleanForError(data: any): any; export declare function getResponse(response: any, type?: 'all' | 'single' | 'exists' | 'edit' | 'edit-multiple'): any; export declare function getResponseLogin(response: any, type?: 'all' | 'single' | 'exists' | 'edit' | 'edit-multiple'): any; export declare function getResponseError(err: any, lang?: any, type?: 'all' | 'single' | 'exists' | 'edit' | 'edit-multiple'): any; declare const _default: { setTokenAuth: typeof setTokenAuth; getTokenAuth: typeof getTokenAuth; tokenAuth: string | undefined; getHeaderRequest: typeof getHeaderRequest; cleanResponse: typeof cleanResponse; cleanResponseLogin: typeof cleanResponseLogin; cleanForError: typeof cleanForError; getResponse: typeof getResponse; getResponseLogin: typeof getResponseLogin; getResponseError: typeof getResponseError; }; export default _default; //# sourceMappingURL=http.d.ts.map