mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-13 02:50:04 +02:00
MISC: Support angle bracket type assertions in RAM calculation (#2751)
This commit is contained in:
+1
-1
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user