UNPKG

definition-tester

Version:
17 lines (16 loc) 846 B
import * as Promise from 'bluebird'; import * as globMod from 'glob'; export declare type FullPath = string & { 'is full path': any; }; export declare type TsConfigFullPath = FullPath & { 'is config file': any; }; export declare function endsWith(str: string, suffix: string): boolean; export declare function extractReferenceTags(source: string): string[]; export declare function glob(pattern: string, opts?: globMod.IOptions): Promise<string[]>; export declare function fileExists(target: string): Promise<boolean>; export declare function readFile(target: string): Promise<string>; export declare function readJSON(target: string): Promise<string>; export declare function filterMapAsync<T>(arr: T[], filterMap: (t: T) => Promise<T | undefined>): Promise<T[]>; export declare function unique(arr: string[]): string[];