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 7.0
// Project: https://github.com/npm/npm-packlist, https://www.npmjs.com/package/npm-packlist
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
// Florian Imdahl <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.3
import type { Node } from '@npmcli/arborist';
import type { Walker, WalkerOptions, WalkerSync } from 'ignore-walk';
declare function packlist(tree: Node, options?: packlist.Options): Promise<string[]>;
declare function packlist<T>(tree: Node, options: packlist.Options | undefined, callback: (result: string[]) => T): Promise<T>;
declare namespace packlist {
interface Options extends WalkerOptions {
parent?: Walker | WalkerSync | null | undefined;
/** Directory to walk recusively. Defaults to `process.cwd()`. */
path?: string | undefined;
}
}
export = packlist;
Additional Details
- Last updated: Sat, 31 Dec 2022 19:02:56 GMT
- Dependencies: @types/ignore-walk, @types/npmcli__arborist
- Global values: none
Credits
These definitions were written by Klaus Meinhardt, and Florian Imdahl.