DefinitelyTyped/types/which-pm/index.d.ts
Jorge Gonzalez 3d328af508 Add types for which-pm@1.0 (#27543)
* Add types for which-pm@1.0

* Move reference types to which-pm-tests.ts
2018-07-24 11:24:45 -07:00

15 lines
404 B
TypeScript

// Type definitions for which-pm 1.0
// Project: https://github.com/zkochan/which-pm#readme
// Definitions by: Jorge Gonzalez <https://github.com/jorgegonzalez>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
interface PMInfo {
name: string;
version?: string;
}
declare function whichpm(pkgPath: string): Promise<PMInfo | null>;
export = whichpm;