Skip to content

Commit 884a7e1

Browse files
committed
Fixed compiling with minimal version
1 parent 182d557 commit 884a7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/properties-minifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function isClassMember(node: ts.Node): node is ClassMember {
240240
}
241241

242242
function isConstructorParameter(node: ts.Node): node is ts.ParameterDeclaration {
243-
return ts.isParameter(node) && ts.isConstructorDeclaration(node.parent);
243+
return ts.isParameter(node) && ts.isConstructorDeclaration(node.parent as ts.Node);
244244
}
245245

246246
function getClassName(classNode: ts.ClassLikeDeclaration): string {

0 commit comments

Comments
 (0)