UNPKG

788 BTypeScriptView Raw
1import { Arg } from "./payload";
2export declare function toArray<T>(value: T | T[]): T[];
3export declare function handlerLoader<T>(name: string): Promise<T>;
4export declare function requirePath(folderOrFile: string): Promise<string>;
5export declare function extractParameters(intent: string): Arg[];
6export declare function replacer(key: string, value: any): any;
7export declare function hideString(value: any): any;
8export declare function guid(): string;
9export declare function handleError<T>(f: () => Promise<T>, cb?: (err: Error) => T | undefined): Promise<T | undefined>;
10export declare function handleErrorSync<T>(f: () => T, cb?: (err: Error) => T | undefined): T | undefined;
11export declare const DefaultErrorHandler: (err: Error) => undefined;
12//# sourceMappingURL=util.d.ts.map
\No newline at end of file