human/types/src/util.d.ts

19 lines
657 B
TypeScript
Raw Normal View History

2021-05-25 14:58:20 +02:00
/**
* Simple helper functions used accross codebase
*/
2021-04-09 14:07:58 +02:00
export declare function join(folder: string, file: string): string;
2021-03-21 12:49:55 +01:00
export declare function log(...msg: any[]): void;
export declare const now: () => number;
2021-09-19 20:07:53 +02:00
export declare function validate(defaults: any, config: any, parent?: string, msgs?: Array<{
reason: string;
where: string;
expected?: string;
}>): {
reason: string;
where: string;
expected?: string;
}[];
2021-03-21 12:49:55 +01:00
export declare function mergeDeep(...objects: any[]): any;
2021-08-17 14:51:17 +02:00
export declare const minmax: (data: Array<number>) => number[];
2021-09-21 04:06:49 +02:00
export declare function wait(time: any): Promise<void>;
//# sourceMappingURL=util.d.ts.map