UNPKG

npm-types

Version:

Helps you to write a bit less on the terminal

6 lines (5 loc) 413 B
import { PackagesToBeInstalled } from "./types"; export declare function runNpm(cmd: string, cwd?: string): Promise<string | Error>; export declare function queryPackageInfo(pkg: string): Promise<Record<string, any>>; export declare function validatePackageName(pkg: string): boolean; export declare function getPkgsToBeInstalled(pkgs: string[], installDeprecatedTypes?: boolean): Promise<PackagesToBeInstalled>;