@types/yarnpkg__lockfile
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

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 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Eric Wang.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/yarnpkg__lockfile

Weekly Downloads

134,625

Version

1.1.9

License

MIT

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • types