DefinitelyTyped/types/find-exec/index.d.ts
Piotr Błażejewicz (Peter Blazejewicz) d3c19af135
feat(find-exec): new definition file (#43186)
- definition file for v1.0
- tests

https://github.com/shime/find-exec#find-exec

Thanks!
2020-03-20 14:01:29 -04:00

13 lines
489 B
TypeScript

// Type definitions for find-exec 1.0
// Project: https://github.com/shime/find-exec
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Takes a list of shell commands and returns the first available.
* Works synchronously to respect the order.
*/
declare function findExec(execs: string[]): string | null;
declare function findExec(...args: string[]): string | null;
export = findExec;