UNPKG

@haku-sci/utils

Version:

utils from haku-sci. Library only

8 lines (7 loc) 597 B
export declare const HAKU_SCI_RESOURCE = "haku:resource"; export declare const HAKU_SCI_ACTION = "haku:action"; export declare function executeFunction<F extends (...args: any[]) => any>(parent: any, funcName: string, params: Record<string, any>): ReturnType<F>; export declare function getSortedParameters(func: Function, params: Record<string, any>): string[]; export declare function microServiceName(): Promise<string>; export declare function getHttpRequestMaxSize(requestMaxSize?: string): number; export declare function withWatchdog<T>(promise: Promise<T>, timeoutMs: number): Promise<T>;