UNPKG

695 BTypeScriptView Raw
1/// <reference types="node" />
2
3export = isExe;
4
5declare function isExe(path: string, options?: isExe.Options): Promise<boolean>;
6declare function isExe(
7 path: string,
8 callback: (error: NodeJS.ErrnoException | undefined, isExe: boolean) => void,
9): void;
10declare function isExe(
11 path: string,
12 options: isExe.Options,
13 callback: (error: NodeJS.ErrnoException | undefined, isExe: boolean) => void,
14): void;
15
16declare namespace isExe {
17 function sync(path: string, options?: Options): boolean;
18
19 interface Options {
20 ignoreErrors?: boolean | undefined;
21 uid?: number | undefined;
22 gid?: number | undefined;
23 pathExt?: string | undefined;
24 }
25}