UNPKG

1.47 kBTypeScriptView Raw
1import { ExternalModules } from './types';
2export declare function copyFromTo({pattern, rootDir, toDir, excludes}: {
3 pattern: string;
4 rootDir: string;
5 toDir: string;
6 excludes?: string[];
7}): Promise<string[]>;
8export declare function readFile(filePath: string, encoding?: string): string;
9export declare function writeFile(filePath: string, content: string, encoding?: string): void;
10export declare function isDirectory(validPath: string): boolean;
11export declare function isFile(validPath: string): boolean;
12export declare function isString(value: any): value is string;
13export declare function isNil(value: any): value is null | undefined;
14export declare function isEmpty(value: any): boolean;
15export declare function isArray(variable: any): variable is any[];
16export declare function ensureMakeDir(validPath: string): void;
17export declare function ensureRemoveDir(validPath: string): void;
18export declare function mergeLevelFromTo(from: any, to: any): any;
19export declare type uniqueArrayPredicate<T> = (item: T, searchIn: T[]) => boolean;
20export declare function uniqueArray<T>(unique: T[], second: T[], predicate?: uniqueArrayPredicate<T>): T[];
21export declare function mergeInto<T, U>(origin: T, dest: U): T & U;
22export declare function removeComments(input: string): string;
23export declare function isAngularLib(externals: ExternalModules): boolean;
24export declare function isOfType<T>(_value: any, check: (value: any) => boolean): _value is T;