mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Add types for get-installed-path * Update types/get-installed-path/index.d.ts Co-authored-by: Dmitry Demensky <10235949+demensky@users.noreply.github.com> * Typescript 3.4 required for readonly properties Co-authored-by: Dmitry Demensky <10235949+demensky@users.noreply.github.com>
15 lines
532 B
TypeScript
15 lines
532 B
TypeScript
// Type definitions for get-installed-path 4.0
|
|
// Project: https://github.com/tunnckoCore/get-installed-path
|
|
// Definitions by: Jamie Magee <https://github.com/JamieMagee>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// Minimum TypeScript Version: 3.4
|
|
|
|
export function getInstalledPath(name: string, opts?: Options): Promise<string>;
|
|
export function getInstalledPathSync(name: string, opts?: Options): string;
|
|
|
|
export interface Options {
|
|
cwd?: string;
|
|
local?: boolean;
|
|
paths?: readonly string[];
|
|
}
|