This repository was archived by the owner on Jan 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmodel.code-snippets
58 lines (58 loc) · 1.55 KB
/
model.code-snippets
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
54
55
56
57
58
{
"Model": {
"prefix": "mo",
"body": [
"export class $1 extends Model<$1>()({$2}) {}",
""
],
"description": "Defines a Model signature"
},
"GetRequest": {
"prefix": "gr",
"body": [
"export class Request extends Get(\"/$1\")<Request>()({$2}) {}",
""
],
"description": "Defines a GetRequest signature"
},
"DeleteRequest": {
"prefix": "dr",
"body": [
"export class Request extends Delete(\"/$1\")<Request>()({$2}) {}",
""
],
"description": "Defines a DeleteRequest signature"
},
"PatchRequest": {
"prefix": "par",
"body": [
"export class Request extends Patch(\"/$1\")<Request>()({$2}) {}",
""
],
"description": "Defines a PatchRequest signature"
},
"PutRequest": {
"prefix": "pur",
"body": [
"export class Request extends Put(\"/$1\")<Request>()({$2}) {}",
""
],
"description": "Defines a PutRequest signature"
},
"PostRequest": {
"prefix": "por",
"body": [
"export default class Request extends Post(\"/$1\")<Request>()({$2}) {}",
""
],
"description": "Defines a PostRequest signature"
},
"Response": {
"prefix": "res",
"body": [
"export class Response extends Model<Response()({$1}) {}",
""
],
"description": "Defines a Response signature"
},
}