File tree Expand file tree Collapse file tree 6 files changed +37
-22
lines changed Expand file tree Collapse file tree 6 files changed +37
-22
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ export interface ApiOptions
10
10
11
11
export interface Api extends ApiOptions { }
12
12
export class Api {
13
- constructor (
14
- public entrypoint : string ,
15
- options : ApiOptions = { } ,
16
- ) {
13
+ entrypoint : string ;
14
+ constructor ( entrypoint : string , options : ApiOptions = { } ) {
15
+ this . entrypoint = entrypoint ;
17
16
assignSealed ( this , options ) ;
18
17
}
19
18
}
Original file line number Diff line number Diff line change @@ -48,10 +48,9 @@ export interface FieldOptions
48
48
49
49
export interface Field extends FieldOptions { }
50
50
export class Field {
51
- constructor (
52
- public name : string ,
53
- options : FieldOptions = { } ,
54
- ) {
51
+ name : string ;
52
+ constructor ( name : string , options : FieldOptions = { } ) {
53
+ this . name = name ;
55
54
assignSealed ( this , options ) ;
56
55
}
57
56
}
Original file line number Diff line number Diff line change @@ -14,11 +14,16 @@ export interface OperationOptions
14
14
15
15
export interface Operation extends OperationOptions { }
16
16
export class Operation {
17
+ name : string ;
18
+ type : OperationType ;
17
19
constructor (
18
- public name : string ,
19
- public type : OperationType ,
20
+ name : string ,
21
+ type : OperationType ,
20
22
options : OperationOptions = { } ,
21
23
) {
24
+ this . name = name ;
25
+ this . type = type ;
26
+
22
27
assignSealed ( this , options ) ;
23
28
}
24
29
}
Original file line number Diff line number Diff line change 1
1
export class Parameter {
2
+ variable : string ;
3
+ range : string | null ;
4
+ required : boolean ;
5
+ description : string ;
6
+ deprecated ?: boolean | undefined ;
7
+
2
8
constructor (
3
- public variable : string ,
4
- public range : string | null ,
5
- public required : boolean ,
6
- public description : string ,
7
- public deprecated ?: boolean ,
8
- ) { }
9
+ variable : string ,
10
+ range : string | null ,
11
+ required : boolean ,
12
+ description : string ,
13
+ deprecated ?: boolean ,
14
+ ) {
15
+ this . variable = variable ;
16
+ this . range = range ;
17
+ this . required = required ;
18
+ this . description = description ;
19
+ this . deprecated = deprecated ;
20
+ }
9
21
}
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ export interface ResourceOptions
20
20
21
21
export interface Resource extends ResourceOptions { }
22
22
export class Resource {
23
- constructor (
24
- public name : string ,
25
- public url : string ,
26
- options : ResourceOptions = { } ,
27
- ) {
23
+ name : string ;
24
+ url : string ;
25
+ constructor ( name : string , url : string , options : ResourceOptions = { } ) {
26
+ this . name = name ;
27
+ this . url = url ;
28
28
assignSealed ( this , options ) ;
29
29
}
30
30
}
Original file line number Diff line number Diff line change 33
33
"sourceMap" : true ,
34
34
35
35
/* Interop Constraints */
36
- // "erasableSyntaxOnly": true,
36
+ "erasableSyntaxOnly" : true ,
37
37
"isolatedDeclarations" : true ,
38
38
"verbatimModuleSyntax" : true
39
39
},
You can’t perform that action at this time.
0 commit comments