Skip to content

Commit 9b5b544

Browse files
committed
Fix tslint warnings for inferable types
1 parent dd84077 commit 9b5b544

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/lib/converter/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class Context {
8888
/**
8989
* Next free symbol id used by [[getSymbolID]].
9090
*/
91-
private symbolID: number = -1024;
91+
private symbolID = -1024;
9292

9393
/**
9494
* The pattern that should be used to flag external source files.

src/lib/converter/types/reference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class ReferenceConverter extends ConverterTypeComponent implements TypeNo
1313
* The priority this converter should be executed with.
1414
* A higher priority means the converter will be applied earlier.
1515
*/
16-
priority: number = -50;
16+
priority = -50;
1717

1818
/**
1919
* Test whether this converter can handle the given TypeScript node.

src/lib/converter/types/type-parameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class TypeParameterConverter extends ConverterTypeComponent implements Ty
1111
* The priority this converter should be executed with.
1212
* A higher priority means the converter will be applied earlier.
1313
*/
14-
priority: number = -50;
14+
priority = -50;
1515

1616
/**
1717
* Test whether this converter can handle the given TypeScript node.

src/lib/converter/types/unknown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class UnknownConverter extends ConverterTypeComponent implements TypeType
1010
* The priority this converter should be executed with.
1111
* A higher priority means the converter will be applied earlier.
1212
*/
13-
priority: number = -100;
13+
priority = -100;
1414

1515
/**
1616
* Test whether this converter can handle the given TypeScript type.

src/lib/models/types/reference.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export class ReferenceType extends Type {
4545
/**
4646
* Special symbol ID noting that the reference of a ReferenceType was known when creating the type.
4747
*/
48-
static SYMBOL_ID_RESOLVED: number = -1;
48+
static SYMBOL_ID_RESOLVED = -1;
4949

5050
/**
5151
* Special symbol ID noting that the reference should be resolved by the type name.
5252
*/
53-
static SYMBOL_ID_RESOLVE_BY_NAME: number = -2;
53+
static SYMBOL_ID_RESOLVE_BY_NAME = -2;
5454

5555
/**
5656
* Create a new instance of ReferenceType.

0 commit comments

Comments
 (0)