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
// Type definitions for @yarnpkg/lockfile 1.1
// Project: https://github.com/yarnpkg/yarn/tree/master/packages/lockfile
// Definitions by: Eric Wang <https://github.com/fa93hws>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Mon, 25 Sep 2023 05:35:36 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Eric Wang.