npm-check-updates
Version:
Find newer versions of dependencies than what your package.json allows
7 lines (6 loc) • 397 B
TypeScript
import { NpmConfig } from './NpmConfig';
import { Options } from './Options';
import { Version } from './Version';
import { VersionResult } from './VersionResult';
/** A function that gets a target version of a dependency. */
export type GetVersion = (packageName: string, currentVersion: Version, options?: Options, npmConfig?: NpmConfig, npmConfigProject?: NpmConfig) => Promise<VersionResult>;