Skip to content

Commit f9c46b5

Browse files
author
Mohsen Azimi
committed
Fix issues raised in PR review
1 parent 872fdee commit f9c46b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,15 +1462,15 @@ namespace ts {
14621462
: node;
14631463
}
14641464

1465-
export function createTypeAliasDeclaration(name: string | Identifier, typeParameters: TypeParameterDeclaration[] | undefined, type: ts.TypeNode) {
1465+
export function createTypeAliasDeclaration(name: Identifier, typeParameters: TypeParameterDeclaration[] | undefined, type: TypeNode) {
14661466
const node = <TypeAliasDeclaration>createSynthesizedNode(SyntaxKind.TypeAliasDeclaration);
14671467
node.name = asName(name);
14681468
node.typeParameters = asNodeArray(typeParameters);
14691469
node.type = type;
14701470
return node;
14711471
}
14721472

1473-
export function updateTypeAliasDeclaration(node: TypeAliasDeclaration, name: string | Identifier, typeParameters: TypeParameterDeclaration[] | undefined, type: ts.TypeNode) {
1473+
export function updateTypeAliasDeclaration(node: TypeAliasDeclaration, name: Identifier, typeParameters: TypeParameterDeclaration[] | undefined, type: TypeNode) {
14741474
return node.name !== name
14751475
|| node.typeParameters !== typeParameters
14761476
|| node.type !== type

0 commit comments

Comments
 (0)