refactor(build): remove deprecated typescript functions

This commit is contained in:
Daniel Sogl
2021-09-27 22:04:25 +02:00
parent 9e38c6b922
commit 66f5bbaa4e
6 changed files with 55 additions and 80 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { ClassDeclaration, createConstructor, SyntaxKind } from 'typescript';
import { ClassDeclaration, factory, SyntaxKind } from 'typescript';
import { transformMethod } from './methods';
import { transformProperty } from './properties';
@@ -17,7 +17,7 @@ export function transformMembers(cls: ClassDeclaration) {
propertyIndices.push(index);
return member;
case SyntaxKind.Constructor:
return createConstructor(undefined, undefined, member.parameters, member.body);
return factory.createConstructorDeclaration(undefined, undefined, member.parameters, member.body);
default:
return member; // in case anything gets here by accident...
}