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>
5 lines
220 B
TypeScript
5 lines
220 B
TypeScript
import { getInstalledPath, getInstalledPathSync } from 'get-installed-path';
|
|
|
|
getInstalledPath(''); // $ExpectedType Promise<string>
|
|
getInstalledPathSync('', { cwd: '', local: true, paths: [] }); // $ExpectedType string
|