7.0.3 • Published 6 months ago

@types/npm-packlist v7.0.3

Weekly downloads
31,253
License
MIT
Repository
github
Last release
6 months ago

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.

7.0.3

6 months ago

7.0.2

7 months ago

7.0.1

8 months ago

7.0.0

1 year ago

3.0.0

2 years ago

1.1.2

3 years ago

1.1.1

5 years ago

1.1.0

6 years ago