npm.io
1.1.9 • Published 2 years ago

@types/yarnpkg__lockfile

Licence
MIT
Version
1.1.9
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/yarnpkg__lockfile

Summary

This package contains type definitions for @yarnpkg/lockfile (https://github.com/yarnpkg/yarn/tree/master/packages/lockfile).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yarnpkg__lockfile.

index.d.ts

export interface Dependency {
    [packageName: string]: string;
}

export interface FirstLevelDependency {
    version: string;
    resolved?: string | undefined;
    dependencies?: Dependency | undefined;
}

export interface LockFileObject {
    [packageName: string]: FirstLevelDependency;
}

export function parse(
    file: string,
    fileLoc?: string,
): {
    type: "success" | "merge" | "conflict";
    object: LockFileObject;
};

export function stringify(
    json: any,
    noHeader?: boolean,
    enableVersions?: boolean,
): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Eric Wang.