1.1.9 • Published 6 months ago
@types/yarnpkg__lockfile v1.1.9
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: any;
};
export function stringify(
json: any,
noHeader?: boolean,
enableVersions?: boolean,
): string;
Additional Details
- Last updated: Fri, 02 Jul 2021 16:32:07 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Eric Wang.