File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
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" : " >=4.3.0"
29+ "typescript" : " >=4.3.0 || >=5.0.0-beta "
3030 },
3131 "devDependencies" : {
3232 "@types/chai" : " ~4.3.3" ,
Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ export function hasPrivateKeyword(node: ClassMember | ts.ParameterDeclaration):
128128 return hasModifier ( node , ts . SyntaxKind . PrivateKeyword ) ;
129129}
130130
131+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
132+ // @ts -ignore
131133function getModifiers ( node : ts . Node ) : readonly NonNullable < ts . Node [ 'modifiers' ] > [ number ] [ ] {
132134 if ( isBreakingTypeScriptApi ( ts ) ) {
133135 if ( ! ts . canHaveModifiers ( node ) ) {
@@ -137,6 +139,8 @@ function getModifiers(node: ts.Node): readonly NonNullable<ts.Node['modifiers']>
137139 return ts . getModifiers ( node ) || [ ] ;
138140 }
139141
142+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
143+ // @ts -ignore
140144 // eslint-disable-next-line deprecation/deprecation
141145 return node . modifiers || [ ] ;
142146}
@@ -154,6 +158,8 @@ function getDecorators(node: ts.Node): readonly unknown[] {
154158 return ts . getDecorators ( node ) || [ ] ;
155159 }
156160
161+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
162+ // @ts -ignore
157163 // eslint-disable-next-line deprecation/deprecation
158164 return node . decorators || [ ] ;
159165}
You can’t perform that action at this time.
0 commit comments