1 | export = normalize;
|
2 |
|
3 | declare function normalize(data: normalize.Input, warn?: normalize.WarnFn, strict?: boolean): void;
|
4 | declare function normalize(data: normalize.Input, strict?: boolean): void;
|
5 |
|
6 | declare namespace normalize {
|
7 | type WarnFn = (msg: string) => void;
|
8 | interface Input {
|
9 | [k: string]: any;
|
10 | }
|
11 |
|
12 | interface Person {
|
13 | name?: string | undefined;
|
14 | email?: string | undefined;
|
15 | url?: string | undefined;
|
16 | }
|
17 |
|
18 | interface Package {
|
19 | [k: string]: any;
|
20 | name: string;
|
21 | version: string;
|
22 | files?: string[] | undefined;
|
23 | bin?: { [k: string]: string } | undefined;
|
24 | man?: string[] | undefined;
|
25 | keywords?: string[] | undefined;
|
26 | author?: Person | undefined;
|
27 | maintainers?: Person[] | undefined;
|
28 | contributors?: Person[] | undefined;
|
29 | bundleDependencies?: { [name: string]: string } | undefined;
|
30 | dependencies?: { [name: string]: string } | undefined;
|
31 | devDependencies?: { [name: string]: string } | undefined;
|
32 | optionalDependencies?: { [name: string]: string } | undefined;
|
33 | description?: string | undefined;
|
34 | engines?: { [type: string]: string } | undefined;
|
35 | license?: string | undefined;
|
36 | repository?: { type: string; url: string } | undefined;
|
37 | bugs?: { url: string; email?: string | undefined } | { url?: string | undefined; email: string } | undefined;
|
38 | homepage?: string | undefined;
|
39 | scripts?: { [k: string]: string } | undefined;
|
40 | readme: string;
|
41 | _id: string;
|
42 | }
|
43 | }
|