UNPKG

2.25 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/normalize-package-data`
3
4# Summary
5This package contains type definitions for normalize-package-data (https://github.com/npm/normalize-package-data#readme).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/normalize-package-data.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/normalize-package-data/index.d.ts)
10````ts
11export = normalize;
12
13declare function normalize(data: normalize.Input, warn?: normalize.WarnFn, strict?: boolean): void;
14declare function normalize(data: normalize.Input, strict?: boolean): void;
15
16declare namespace normalize {
17 type WarnFn = (msg: string) => void;
18 interface Input {
19 [k: string]: any;
20 }
21
22 interface Person {
23 name?: string | undefined;
24 email?: string | undefined;
25 url?: string | undefined;
26 }
27
28 interface Package {
29 [k: string]: any;
30 name: string;
31 version: string;
32 files?: string[] | undefined;
33 bin?: { [k: string]: string } | undefined;
34 man?: string[] | undefined;
35 keywords?: string[] | undefined;
36 author?: Person | undefined;
37 maintainers?: Person[] | undefined;
38 contributors?: Person[] | undefined;
39 bundleDependencies?: { [name: string]: string } | undefined;
40 dependencies?: { [name: string]: string } | undefined;
41 devDependencies?: { [name: string]: string } | undefined;
42 optionalDependencies?: { [name: string]: string } | undefined;
43 description?: string | undefined;
44 engines?: { [type: string]: string } | undefined;
45 license?: string | undefined;
46 repository?: { type: string; url: string } | undefined;
47 bugs?: { url: string; email?: string | undefined } | { url?: string | undefined; email: string } | undefined;
48 homepage?: string | undefined;
49 scripts?: { [k: string]: string } | undefined;
50 readme: string;
51 _id: string;
52 }
53}
54
55````
56
57### Additional Details
58 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
59 * Dependencies: none
60
61# Credits
62These definitions were written by [Jeff Dickey](https://github.com/jdxcode).
63
\No newline at end of file