Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c6f425b

Browse files
committed
fix(tsconfig): enable erasableSyntaxOnly and fix errors
1 parent 6de19af commit c6f425b

File tree

6 files changed

+37
-22
lines changed

6 files changed

+37
-22
lines changed

‎src/Api.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ export interface ApiOptions
1010

1111
export interface Api extends ApiOptions {}
1212
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;
1716
assignSealed(this, options);
1817
}
1918
}

‎src/Field.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ export interface FieldOptions
4848

4949
export interface Field extends FieldOptions {}
5050
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;
5554
assignSealed(this, options);
5655
}
5756
}

‎src/Operation.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ export interface OperationOptions
1414

1515
export interface Operation extends OperationOptions {}
1616
export class Operation {
17+
name: string;
18+
type: OperationType;
1719
constructor(
18-
publicname: string,
19-
publictype: OperationType,
20+
name: string,
21+
type: OperationType,
2022
options: OperationOptions = {},
2123
) {
24+
this.name = name;
25+
this.type = type;
26+
2227
assignSealed(this, options);
2328
}
2429
}

‎src/Parameter.ts‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
export class Parameter {
2+
variable: string;
3+
range: string | null;
4+
required: boolean;
5+
description: string;
6+
deprecated?: boolean | undefined;
7+
28
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+
}
921
}

‎src/Resource.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export interface ResourceOptions
2020

2121
export interface Resource extends ResourceOptions {}
2222
export class Resource {
23-
constructor(
24-
publicname: string,
25-
publicurl: 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;
2828
assignSealed(this, options);
2929
}
3030
}

‎tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"sourceMap": true,
3434

3535
/* Interop Constraints */
36-
//"erasableSyntaxOnly": true,
36+
"erasableSyntaxOnly": true,
3737
"isolatedDeclarations": true,
3838
"verbatimModuleSyntax": true
3939
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /