UNPKG

471 BTypeScriptView Raw
1export declare function verifyQueryParam(name: string, req: any): string;
2export declare function verifyBodyParam(name: string, req: any): string;
3export declare function sleep(timeMS: number): Promise<void>;
4export declare function asyncHandler<SelfT>(self: SelfT, handlerName: string, handler: Function): (...args: any[]) => any;
5export declare function retry<ReturnT>(operation: () => Promise<ReturnT>, maxAttempts: number, waitTimeMS: number): Promise<ReturnT>;