Files
DefinitelyTyped/types/deglob/index.d.ts
2018-04-25 12:02:45 -07:00

23 lines
650 B
TypeScript

// Type definitions for deglob v 2.1
// Project: https://github.com/standard/deglob
// Definitions by: Saad Quadri <https://github.com/saadq>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type Callback = (err: Error | null, files: string[]) => void;
declare function deglob(patterns: string[], cb: Callback): void;
declare function deglob(patterns: string[], opts: deglob.Options, cb: Callback): void;
declare namespace deglob {
interface Options {
useGitIgnore?: boolean;
usePackageJson?: boolean;
configKey?: string;
gitIgnoreFile?: string;
ignore?: string[];
cwd?: string;
}
}
export = deglob;