File tree 3 files changed +4
-4
lines changed
tests/baselines/reference/api
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ namespace ts {
71
71
// Literals
72
72
73
73
/** If a node is passed, creates a string literal whose source text is read from a source node during emit. */
74
- export function createLiteral ( value : string | StringLiteral | NumericLiteral | Identifier ) : StringLiteral ;
74
+ export function createLiteral ( value : string | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier ) : StringLiteral ;
75
75
export function createLiteral ( value : number ) : NumericLiteral ;
76
76
export function createLiteral ( value : boolean ) : BooleanLiteral ;
77
77
export function createLiteral ( value : string | number | boolean ) : PrimaryExpression ;
78
- export function createLiteral ( value : string | number | boolean | StringLiteral | NumericLiteral | Identifier ) : PrimaryExpression {
78
+ export function createLiteral ( value : string | number | boolean | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier ) : PrimaryExpression {
79
79
if ( typeof value === "number" ) {
80
80
return createNumericLiteral ( value + "" ) ;
81
81
}
Original file line number Diff line number Diff line change @@ -3289,7 +3289,7 @@ declare namespace ts {
3289
3289
declare namespace ts {
3290
3290
function createNodeArray < T extends Node > ( elements ?: ReadonlyArray < T > , hasTrailingComma ?: boolean ) : NodeArray < T > ;
3291
3291
/** If a node is passed, creates a string literal whose source text is read from a source node during emit. */
3292
- function createLiteral ( value : string | StringLiteral | NumericLiteral | Identifier ) : StringLiteral ;
3292
+ function createLiteral ( value : string | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier ) : StringLiteral ;
3293
3293
function createLiteral ( value : number ) : NumericLiteral ;
3294
3294
function createLiteral ( value : boolean ) : BooleanLiteral ;
3295
3295
function createLiteral ( value : string | number | boolean ) : PrimaryExpression ;
Original file line number Diff line number Diff line change @@ -3236,7 +3236,7 @@ declare namespace ts {
3236
3236
declare namespace ts {
3237
3237
function createNodeArray < T extends Node > ( elements ?: ReadonlyArray < T > , hasTrailingComma ?: boolean ) : NodeArray < T > ;
3238
3238
/** If a node is passed, creates a string literal whose source text is read from a source node during emit. */
3239
- function createLiteral ( value : string | StringLiteral | NumericLiteral | Identifier ) : StringLiteral ;
3239
+ function createLiteral ( value : string | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier ) : StringLiteral ;
3240
3240
function createLiteral ( value : number ) : NumericLiteral ;
3241
3241
function createLiteral ( value : boolean ) : BooleanLiteral ;
3242
3242
function createLiteral ( value : string | number | boolean ) : PrimaryExpression ;
You can’t perform that action at this time.
0 commit comments