UNPKG

2.15 kBTypeScriptView Raw
1import { Reporter } from './reporters/index.js';
2import Config from './config.js';
3export declare type CLIFunction = (config: Config, reporter: Reporter, flags: Object, args: Array<string>) => CLIFunctionReturn;
4declare type _CLIFunctionReturn = boolean;
5export declare type CLIFunctionReturn = _CLIFunctionReturn | Promise<_CLIFunctionReturn>;
6export declare type PersonObject = {
7 email?: string;
8 name?: string;
9 url?: string;
10};
11declare type Dependencies = {
12 [key: string]: string;
13};
14export declare type Manifest = {
15 name: string;
16 version: string;
17 description?: string;
18 keywords?: string[];
19 sideEffects?: boolean;
20 private?: boolean;
21 distributions?: any;
22 author?: {
23 name?: string;
24 email?: string;
25 url?: string;
26 };
27 homepage?: string;
28 flat?: boolean;
29 license?: string;
30 licenseText?: string;
31 noticeText?: string;
32 readme?: string;
33 readmeFilename?: string;
34 repository?: {
35 type: 'git';
36 url: string;
37 };
38 bugs?: {
39 url: string;
40 };
41 dist?: {
42 tarball: string;
43 shasum: string;
44 };
45 directories?: {
46 man: string;
47 bin: string;
48 };
49 man?: Array<string>;
50 bin?: {
51 [name: string]: string;
52 };
53 scripts?: {
54 [name: string]: string;
55 };
56 engines?: {
57 [engineName: string]: string;
58 };
59 os?: Array<string>;
60 cpu?: Array<string>;
61 dependencies?: Dependencies;
62 devDependencies?: Dependencies;
63 peerDependencies?: Dependencies;
64 optionalDependencies?: Dependencies;
65 bundleDependencies?: Array<string>;
66 bundledDependencies?: Array<string>;
67 installConfig?: {
68 pnp?: boolean;
69 };
70 deprecated?: string;
71 files?: Array<string>;
72 main?: string;
73 fresh?: boolean;
74 prebuiltVariants?: {
75 [filename: string]: string;
76 };
77};
78export declare type Dependency = {
79 name: string;
80 current: string;
81 wanted: string;
82 latest: string;
83 url: string;
84 hint?: string;
85 range: string;
86 upgradeTo: string;
87 workspaceName: string;
88 workspaceLoc: string;
89};
90export {};