@@ -6,7 +6,7 @@ import {Context} from "../context";
6
6
7
7
8
8
@Component ( { name :'type:string-literal' } )
9
- export class StringLiteralConverter extends ConverterTypeComponent implements ITypeConverter < ts . StringLiteralType , ts . StringLiteral >
9
+ export class StringLiteralConverter extends ConverterTypeComponent implements ITypeConverter < ts . LiteralType , ts . StringLiteral >
10
10
{
11
11
/**
12
12
* Test whether this converter can handle the given TypeScript node.
@@ -19,7 +19,7 @@ export class StringLiteralConverter extends ConverterTypeComponent implements IT
19
19
/**
20
20
* Test whether this converter can handle the given TypeScript type.
21
21
*/
22
- supportsType ( context :Context , type :ts . StringLiteralType ) :boolean {
22
+ supportsType ( context :Context , type :ts . LiteralType ) :boolean {
23
23
return ! ! ( type . flags & ts . TypeFlags . StringLiteral ) ;
24
24
}
25
25
@@ -36,7 +36,7 @@ export class StringLiteralConverter extends ConverterTypeComponent implements IT
36
36
* @param node The string literal node that should be converted.
37
37
* @returns The type reflection representing the given string literal node.
38
38
*/
39
- convertNode ( context :Context , node :ts . StringLiteral ) :StringLiteralType {
39
+ convertNode ( context :Context , node :ts . StringLiteral ) :Type {
40
40
return new StringLiteralType ( node . text ) ;
41
41
}
42
42
@@ -53,7 +53,7 @@ export class StringLiteralConverter extends ConverterTypeComponent implements IT
53
53
* @param type The intrinsic type that should be converted.
54
54
* @returns The type reflection representing the given string literal type.
55
55
*/
56
- convertType ( context :Context , type :ts . StringLiteralType ) : StringLiteralType {
56
+ convertType ( context :Context , type :ts . LiteralType ) : Type {
57
57
return new StringLiteralType ( type . text ) ;
58
58
}
59
59
}
0 commit comments