npm-check-updates
Version:
Find newer versions of dependencies than what your package.json allows
18 lines (17 loc) • 651 B
TypeScript
import { Index } from './types/IndexType';
import { PackageFile } from './types/PackageFile';
import { RunOptions } from './types/RunOptions';
import { VersionSpec } from './types/VersionSpec';
/** Main entry point.
*
* @returns Promise<
* PackageFile Default returns upgraded package file.
* | Index<VersionSpec> --jsonUpgraded returns only upgraded dependencies.
* | void --global upgrade returns void.
* >
*/
export declare function run(runOptions?: RunOptions, { cli }?: {
cli?: boolean;
}): Promise<PackageFile | Index<VersionSpec> | void>;
export default run;
export type { RunOptions };