DefinitelyTyped/types/get-installed-path/index.d.ts
Jamie Magee 00a41eaabc
Add types for get-installed-path (#45795)
* 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>
2020-07-06 17:26:06 -07:00

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[];
}