mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: TypeScript 5.1 with Nx 16.6 migrations (#10338)
This commit is contained in:
@@ -12,7 +12,7 @@ export default function (ctx: ts.TransformationContext) {
|
||||
decorators = ts.getDecorators(node);
|
||||
} else {
|
||||
// fallback to old behavior on older typescript versions
|
||||
decorators = node.decorators;
|
||||
decorators = (node as any).decorators;
|
||||
}
|
||||
|
||||
return !!decorators?.some((d) => {
|
||||
@@ -53,6 +53,6 @@ export default function (ctx: ts.TransformationContext) {
|
||||
return (source: ts.SourceFile) =>
|
||||
ts.factory.updateSourceFile(
|
||||
source,
|
||||
ts.visitNodes(source.statements, visitNode)
|
||||
ts.visitNodes(source.statements, visitNode) as ts.NodeArray<ts.Statement>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user