diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 011cedcad81..cce95c23c22 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -1462,7 +1462,7 @@ namespace ts { : node; } - export function createTypeAliasDeclaration(name: Identifier, typeParameters: TypeParameterDeclaration[] | undefined, type: TypeNode) { + export function createTypeAliasDeclaration(name: string | Identifier, typeParameters: TypeParameterDeclaration[] | undefined, type: TypeNode) { const node = createSynthesizedNode(SyntaxKind.TypeAliasDeclaration); node.name = asName(name); node.typeParameters = asNodeArray(typeParameters);