-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathtypes.ts
More file actions
40 lines (36 loc) · 740 Bytes
/
types.ts
File metadata and controls
40 lines (36 loc) · 740 Bytes
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
export interface ServerlessInstance {
cli: {
log(str: string)
}
config: {
servicePath: string
}
service: {
provider: {
name: string
}
functions: { [key: string]: ServerlessFunction }
package: ServerlessPackage
getAllFunctions: () => string[]
}
pluginManager: PluginManager
}
export interface ServerlessOptions {
function?: string
watch?: boolean
extraServicePath?: string
}
export interface ServerlessFunction {
handler: string
package: ServerlessPackage
sequence?: string[]
}
export interface ServerlessPackage {
include: string[]
exclude: string[]
artifact?: string
individually?: boolean
}
export interface PluginManager {
spawn(command: string): Promise<void>
}