File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2626 },
2727 "homepage" : " https://github.com/timocov/ts-transformer-properties-rename" ,
2828 "peerDependencies" : {
29- "typescript" : " >=3.0.0"
29+ "typescript" : " >=3.0.0 || >=4.0.0 "
3030 },
3131 "devDependencies" : {
3232 "@types/chai" : " ~4.2.11" ,
3838 "rimraf" : " ~3.0.2" ,
3939 "ts-node" : " ~8.10.2" ,
4040 "tslint" : " ~6.1.2" ,
41- "typescript" : " ~3.9.5 "
41+ "typescript" : " ~4.4.3 "
4242 },
4343 "scripts" : {
4444 "clean" : " rimraf lib/ dist/" ,
Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ export function getClassOfMemberSymbol(nodeSymbol: ts.Symbol): ts.ClassLikeDecla
121121 return ( classMember . parent as ts . ConstructorDeclaration ) . parent ;
122122 }
123123
124- return classMember . parent ;
124+ // we're sure that it is a class, not interface
125+ return classMember . parent as ts . ClassLikeDeclaration | ts . ObjectLiteralExpression ;
125126 }
126127
127128 return null ;
You can’t perform that action at this time.
0 commit comments