human/types/src/util.d.ts

25 lines
832 B
TypeScript
Raw Normal View History

2021-05-25 14:58:20 +02:00
/**
* Simple helper functions used accross codebase
*/
2021-09-27 15:19:43 +02:00
import type { Box } from './result';
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>;
2021-09-27 15:19:43 +02:00
export declare function scaleBox(keypoints: any, boxScaleFact: any, outputSize: any): {
box: Box;
boxRaw: Box;
yxBox: Box;
};
//# sourceMappingURL=util.d.ts.map