1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | type Choice = {
|
11 | value: string | boolean | number,
|
12 | description: string,
|
13 | };
|
14 |
|
15 | export type CommandOption = {
|
16 | name: string,
|
17 | description: string,
|
18 | parse?: Function,
|
19 | default?: any,
|
20 | example?: string,
|
21 | choices?: Array<Choice>,
|
22 | };
|
23 |
|
24 | export type Command = {
|
25 | name: string,
|
26 | description: string,
|
27 | action: (args: Object) => void | Promise<void>,
|
28 | options?: Array<CommandOption>,
|
29 | adjustOptions?: (options: Object) => void,
|
30 | };
|
31 |
|
32 | export type WebpackStats = {
|
33 | hasWarnings: () => boolean,
|
34 | hasErrors: () => boolean,
|
35 | toJson: ({ [key: string]: any }) => { [key: string]: any },
|
36 | };
|
37 |
|
38 | type LoggerPrint = (...args: any[]) => void;
|
39 |
|
40 | export type Logger = {
|
41 | info: LoggerPrint,
|
42 | warn: LoggerPrint,
|
43 | error: LoggerPrint,
|
44 | done: LoggerPrint,
|
45 | debug: LoggerPrint,
|
46 | reset: () => Logger,
|
47 | };
|
48 |
|
49 | export type ReactNativeStackFrame = {
|
50 | lineNumber: number,
|
51 | column: number,
|
52 | file: string,
|
53 | methodName: string,
|
54 | };
|
55 |
|
56 | export type ReactNativeStack = Array<ReactNativeStackFrame>;
|
57 |
|
58 | export type Platform = string;
|