mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-20 14:42: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.
|
// Only walk relevant TypeScript nodes.
|
||||||
base.TSModuleBlock = base.BlockStatement;
|
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) => {
|
base.TSModuleDeclaration = (node: any, state: any, callback: any) => {
|
||||||
callback(node.body, state);
|
callback(node.body, state);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user