JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 123948
  • Score
    100M100P100Q158011F
  • License MIT

TypeScript definitions for @yarnpkg/lockfile

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/yarnpkg__lockfile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.