dotfiles/vscode/.vscode/extensions/matangover.mypy-0.3.1/node_modules/lookpath/lib/index.d.ts
Errol Sancaktar 5f8db31398 alacritty
2024-07-15 17:06:13 -06:00

24 lines
764 B
TypeScript

/**
* Returns async promise with absolute file path of given command,
* and resolves with undefined if the command not found.
* @param {string} command Command name to look for.
* @param {LookPathOption} opt Options for lookpath.
* @return {Promise<string|undefined>} Resolves absolute file path, or undefined if not found.
*/
export declare function lookpath(command: string, opt?: LookPathOption): Promise<string | undefined>;
/**
* Options for lookpath.
*/
export interface LookPathOption {
/**
* Additional pathes to look for, would be dealt same as PATH env.
* Example: ['/tmp/bin', 'usr/local/bin']
*/
include?: string[];
/**
* Pathes to exclude to look for.
* Example: ['/mnt']
*/
exclude?: string[];
}