installed-check-core
Version:
Checks that all dependencies in your package.json have supported versions installed
32 lines • 1.61 kB
TypeScript
export function checkVersionRange(pkg: import("./lookup-types.d.ts").PackageJsonLike, key: string, installed: import("./lookup-types.d.ts").InstalledDependencies, options?: VersionRangeOptions | undefined): VersionRangeResult;
export function checkVersionRangeCollection(pkg: import("./lookup-types.d.ts").PackageJsonLike, topKey: string, installed: import("./lookup-types.d.ts").InstalledDependencies, options?: VersionRangesOptions | undefined): {
[key: string]: VersionRangeCollectionResult;
};
export function checkDependencyRange(referenceRange: string, key: string, dependencyPackage: import("./lookup-types.d.ts").PackageJsonLike | undefined, isOptional?: boolean | undefined, options?: Omit<VersionRangeOptions, "noDev"> | undefined): (VersionRangeItem & {
valid: false | undefined;
}) | undefined;
export type VersionRangeItem = {
valid: boolean | undefined;
suggested?: string | undefined;
note: string | undefined;
};
export type VersionRangeOptions = {
expectedInDependencies?: boolean | undefined;
ignoreDefinitelyTyped?: boolean | undefined;
ignore?: string[] | ((test: string) => boolean) | undefined;
noDev?: boolean | undefined;
strict?: boolean | undefined;
};
export type VersionRangeResult = VersionRangeItem & {
packageNotes: Array<VersionRangeItem & {
name: string;
}>;
};
export type VersionRangesOptions = VersionRangeOptions & {
defaultKeys?: string[] | undefined;
};
export type VersionRangeCollectionResult = VersionRangeResult & {
topKey: string;
childKey: string;
};
//# sourceMappingURL=check-version-range.d.ts.map