UNPKG

@anycli/config

Version:

base config object and standard interfaces for anycli components

12 lines (11 loc) 543 B
export declare function flatMap<T, U>(arr: T[], fn: (i: T) => U[]): U[]; export declare function mapValues<T extends object, TResult>(obj: { [P in keyof T]: T[P]; }, fn: (i: T[keyof T], k: keyof T) => TResult): { [P in keyof T]: TResult; }; export declare function loadJSONSync(path: string): any; export declare function exists(path: string): Promise<boolean>; export declare function loadJSON(path: string): Promise<any>; export declare function compact<T>(a: (T | undefined)[]): T[]; export declare function uniq<T>(arr: T[]): T[];