-
Notifications
You must be signed in to change notification settings - Fork 230
/
snippets.json
32 lines (32 loc) · 951 Bytes
/
snippets.json
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
{
"Enum": {
"prefix": "enum",
"body": "enum ${1:Name} {\n ${0:value},\n}",
"description": "Enum definition"
},
"Interface": {
"prefix": "interface",
"body": "interface ${1:Name} {\n ${2:member}(${3:parameters}:${4:type}): ${0:returnType};\n}",
"description": "Interface definition"
},
"Model": {
"prefix": "model",
"body": "model ${1:Name} {\n ${2:propertyName}: ${0:propertyType};\n}",
"description": "Model definition"
},
"Namespace": {
"prefix": "namespace",
"body": "namespace ${1:Name} {\n $TM_SELECTED_TEXT$0\n}",
"description": "Namespace definition"
},
"Operation": {
"prefix": ["op", "operation"],
"body": "op ${1:name}(${2:parameters}:${3:type}): ${0:returnType};",
"description": "Operation definition"
},
"Union": {
"prefix": "union",
"body": "union ${1:Name} = ${2:variant1} | ${0:variant2};",
"description": "Named union definition"
}
}