mirror of
https://github.com/sern-handler/website
synced 2026-06-28 02:32:23 +00:00
26 lines
417 B
TypeScript
26 lines
417 B
TypeScript
declare function whichpm (pkgPath: string): Promise<whichpm.Result>
|
|
|
|
declare namespace whichpm {
|
|
type Result = NPM | YARN | PNPM | Other
|
|
|
|
interface NPM {
|
|
readonly name: 'npm'
|
|
}
|
|
|
|
interface YARN {
|
|
readonly name: 'yarn'
|
|
}
|
|
|
|
interface PNPM {
|
|
readonly name: 'pnpm'
|
|
readonly version: string
|
|
}
|
|
|
|
interface Other {
|
|
readonly name: string
|
|
readonly version?: string
|
|
}
|
|
}
|
|
|
|
export = whichpm
|