1 | // Type definitions for command-exists 1.2
|
2 | // Project: https://github.com/mathisonian/command-exists
|
3 | // Definitions by: BendingBender <https://github.com/BendingBender>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | export = commandExists;
|
7 |
|
8 | declare function commandExists(commandName: string): Promise<string>;
|
9 | declare function commandExists(
|
10 | commandName: string,
|
11 | cb: (error: null, exists: boolean) => void
|
12 | ): void;
|
13 |
|
14 | declare namespace commandExists {
|
15 | function sync(commandName: string): boolean;
|
16 | }
|