@types/init-package-json
TypeScript icon, indicating that this package has built-in type declarations

1.10.3 • Public • Published

Installation

npm install --save @types/init-package-json

Summary

This package contains type definitions for init-package-json (https://github.com/npm/init-package-json#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/init-package-json.

index.d.ts

declare namespace init_package_json {
    interface Config {
        [key: string]: any;
        get(k: string): any;
    }

    function yes(conf: Config): boolean;
}

declare function init_package_json(
    dir: string,
    input: string,
    config: init_package_json.Config | {},
    cb: (err: any, data: any) => void,
): void;

declare function init_package_json(
    dir: string,
    input: string,
    cb: (err: any, data: any) => void,
): void;

export = init_package_json;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Kyle Farnung.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/init-package-json

Weekly Downloads

771

Version

1.10.3

License

MIT

Unpacked Size

3.57 kB

Total Files

5

Last publish

Collaborators

  • types