DefinitelyTyped/types/pkg-dir/index.d.ts
2018-01-02 10:45:33 -08:00

13 lines
384 B
TypeScript

// Type definitions for pkg-dir 2.0
// Project: https://github.com/sindresorhus/pkg-dir#readme
// Definitions by: NK-WEB-Git <https://github.com/NK-WEB-Git>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = pkgDir;
declare function pkgDir(cwd?: string): Promise<string | null>;
declare namespace pkgDir {
function sync(cwd?: string): string | null;
}