UNPKG

1.11 kBTypeScriptView Raw
1import { structUtils } from '@yarnpkg/core';
2import { NormalisedPkgs } from '../types';
3import { PkgNode } from '../util';
4export declare type ParseDescriptor = typeof structUtils.parseDescriptor;
5export declare type ParseRange = typeof structUtils.parseRange;
6export declare type YarnLockFileKeyNormalizer = (fullDescriptor: string) => Set<string>;
7export declare const yarnLockFileKeyNormalizer: (parseDescriptor: ParseDescriptor, parseRange: ParseRange) => YarnLockFileKeyNormalizer;
8export declare const getYarnLockV2ChildNode: (name: string, depInfo: {
9 version: string;
10 isDev: boolean;
11}, pkgs: NormalisedPkgs, strictOutOfSync: boolean, includeOptionalDeps: boolean, resolutions: Record<string, string>, parentNode: PkgNode) => {
12 id: string;
13 name: string;
14 version: string;
15 dependencies: {
16 [x: string]: {
17 version: string;
18 isDev: boolean;
19 };
20 };
21 isDev: boolean;
22 missingLockFileEntry?: undefined;
23} | {
24 id: string;
25 name: string;
26 version: string;
27 dependencies: {};
28 isDev: boolean;
29 missingLockFileEntry: boolean;
30};