forked from lukeautry/tsoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypeInferenceController.ts
56 lines (54 loc) · 1.06 KB
/
typeInferenceController.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
54
55
56
import { Get, Route } from '@tsoa/runtime';
import { TruncationTestModel } from '../testModel';
@Route('inference')
export class TypeInferenceController {
@Get('keys-interface-inference')
public multiKeysInterfaceInference(): Partial<TruncationTestModel> {
return {
demo01: '',
demo02: '',
demo03: '',
demo04: '',
demo05: '',
demo06: '',
demo07: '',
demo08: '',
demo09: '',
demo10: '',
demo11: '',
demo12: '',
demo13: '',
demo14: '',
demo15: '',
demo16: '',
demo17: '',
d: '',
};
}
@Get('keys-property-inference')
public multiKeysPropertyInference() {
return {
demo01: '',
demo02: '',
demo03: '',
demo04: '',
demo05: '',
demo06: '',
demo07: '',
demo08: '',
demo09: '',
demo10: '',
demo11: '',
demo12: '',
demo13: '',
demo14: '',
demo15: '',
demo16: '',
demo17: '',
demo18: '',
demo19: '',
demo20: '',
demo21: '',
};
}
}