-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
53 lines (47 loc) · 923 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export interface Package {
name: string
numic?: object
dependencies?: object
peerDependencies?: object
devDependencies?: {
typescript?: string
}
scripts?: object
tsconfig?: object
}
export interface Options {
pkg: Package
tsconfig?: object
gitignore?: string[]
nativeGitignore?: string[] | string
reactNativeVersion?: string
typescript: boolean
oldArchitecture?: boolean
}
export type NativeOptions = {
appName?: string
debug?: boolean
version?: string
}
export interface PluginInput {
projectPath?: string
nativePath?: string
log?: (message: string, type?: 'error' | 'warning') => void
options?: object
version?: string
}
export enum RunLocation {
local,
device,
}
export enum RunMode {
debug,
release,
}
export type RunInputs = {
location: RunLocation
mode: RunMode
device?: string // iOS or Android device.
simulator?: string
emulator?: string
}