UNPKG

469 BTypeScriptView Raw
1export declare function ifElse<T, S = undefined>(condition: boolean, then: T, otherwise?: S): T | S | undefined;
2export declare function flatten(array: any[]): any[];
3export declare function removeEmptyValues<T extends {
4 [key: string]: any;
5}>(obj: T): object;
6export declare function removeEmptyStringValues(obj: {
7 [key: string]: string | undefined | null;
8}): {
9 [key: string]: string;
10};
11export declare function msToMinutesAndSeconds(ms: number): string;