7.0.3 • Published 6 months ago
@types/npm-packlist v7.0.3
Installation
npm install --save @types/npm-packlist
Summary
This package contains type definitions for npm-packlist (https://github.com/npm/npm-packlist).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-packlist.
index.d.ts
// Type definitions for npm-packlist 3.0
// Project: https://github.com/npm/npm-packlist, https://www.npmjs.com/package/npm-packlist
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
declare function packlist(options?: packlist.Options): Promise<string[]>;
declare function packlist<T>(options: packlist.Options | undefined, callback: (result: string[]) => T): Promise<T>;
declare namespace packlist {
interface Options {
/** Directory to walk recusively. Defaults to `process.cwd()`. */
path?: string | undefined;
/** packageJsonCache */
packageJsonCache?: Map<string, string | { files: string[] }>;
}
function sync(options?: Options): string[];
}
export = packlist;
Additional Details
- Last updated: Wed, 02 Mar 2022 17:31:50 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Klaus Meinhardt.