@@ -1125,7 +1125,7 @@ namespace ts {
1125
1125
name : PropertyName | string ,
1126
1126
questionToken : QuestionToken | undefined ,
1127
1127
type : TypeNode | undefined ,
1128
- initializer ?: Expression
1128
+ initializer ?: Expression | undefined
1129
1129
) : PropertySignature {
1130
1130
const node = factory . createPropertySignature ( modifiers , name , questionToken , type ) ;
1131
1131
node . initializer = initializer ;
@@ -1187,7 +1187,7 @@ namespace ts {
1187
1187
arguments . length >= 1 && arguments . length <= 3 ? factory . createVariableDeclaration ( name , /*exclamationToken*/ undefined , exclamationTokenOrType as TypeNode | undefined , typeOrInitializer as Expression | undefined ) :
1188
1188
Debug . fail ( "Argument count mismatch" ) ;
1189
1189
} as {
1190
- ( name : string | BindingName , type ?: TypeNode , initializer ?: Expression ) : VariableDeclaration ;
1190
+ ( name : string | BindingName , type ?: TypeNode | undefined , initializer ?: Expression | undefined ) : VariableDeclaration ;
1191
1191
( name : string | BindingName , exclamationToken : ExclamationToken | undefined , type : TypeNode | undefined , initializer : Expression | undefined ) : VariableDeclaration ;
1192
1192
} , factoryDeprecation ) ;
1193
1193
@@ -1212,7 +1212,7 @@ namespace ts {
1212
1212
} , factoryDeprecation ) ;
1213
1213
1214
1214
/** @deprecated Use `factory.createExportDeclaration` or the factory supplied by your transformation context instead. */
1215
- export const createExportDeclaration = Debug . deprecate ( function createExportDeclaration ( decorators : readonly Decorator [ ] | undefined , modifiers : readonly Modifier [ ] | undefined , exportClause : NamedExportBindings | undefined , moduleSpecifier ?: Expression , isTypeOnly = false ) {
1215
+ export const createExportDeclaration = Debug . deprecate ( function createExportDeclaration ( decorators : readonly Decorator [ ] | undefined , modifiers : readonly Modifier [ ] | undefined , exportClause : NamedExportBindings | undefined , moduleSpecifier ?: Expression | undefined , isTypeOnly = false ) {
1216
1216
return factory . createExportDeclaration ( decorators , modifiers , isTypeOnly , exportClause , moduleSpecifier ) ;
1217
1217
} , factoryDeprecation ) ;
1218
1218
@@ -1228,7 +1228,7 @@ namespace ts {
1228
1228
} , factoryDeprecation ) ;
1229
1229
1230
1230
/** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */
1231
- export const createJSDocParamTag = Debug . deprecate ( function createJSDocParamTag ( name : EntityName , isBracketed : boolean , typeExpression ?: JSDocTypeExpression , comment ?: string ) : JSDocParameterTag {
1231
+ export const createJSDocParamTag = Debug . deprecate ( function createJSDocParamTag ( name : EntityName , isBracketed : boolean , typeExpression ?: JSDocTypeExpression | undefined , comment ?: string | undefined ) : JSDocParameterTag {
1232
1232
return factory . createJSDocParameterTag ( /*tagName*/ undefined , name , isBracketed , typeExpression , /*isNameFirst*/ false , comment ? factory . createNodeArray ( [ factory . createJSDocText ( comment ) ] ) : undefined ) ;
1233
1233
} , factoryDeprecation ) ;
1234
1234
0 commit comments