MISC: Support angle bracket type assertions in RAM calculation (#2751)

This commit is contained in:
catloversg
2026-05-10 13:59:39 +07:00
committed by GitHub
parent b79d5b1017
commit 9ea1ec0f28
+1 -1
View File
@@ -81,7 +81,7 @@ export function extendAcornWalkForTypeScriptNodes(base: any) {
}
// Only walk relevant TypeScript nodes.
base.TSModuleBlock = base.BlockStatement;
base.TSAsExpression = base.TSNonNullExpression = base.ExpressionStatement;
base.TSTypeAssertion = base.TSAsExpression = base.TSNonNullExpression = base.ExpressionStatement;
base.TSModuleDeclaration = (node: any, state: any, callback: any) => {
callback(node.body, state);
};