()
| 102 | |
| 103 | /** Populates the type registry and global vars */ |
| 104 | export async function loadTypescriptTypeInfo() { |
| 105 | const a = fetch('/static/generated/ts_global_variables.json') |
| 106 | .then((response) => { |
| 107 | return response.json() |
| 108 | }) |
| 109 | .then((payload: VariableDefinition[]) => { |
| 110 | javascriptBuiltInGlobals = payload |
| 111 | }) |
| 112 | |
| 113 | const d = fetch('/static/generated/ts_global_functions.json') |
| 114 | .then((response) => { |
| 115 | return response.json() |
| 116 | }) |
| 117 | .then((payload: FunctionDefinition[]) => { |
| 118 | javascriptBuiltInGlobalFunctions = payload |
| 119 | }) |
| 120 | |
| 121 | const b = fetch('/static/generated/ts_types.json') |
| 122 | .then((response) => { |
| 123 | return response.json() |
| 124 | }) |
| 125 | .then((payload: TypeDefinition[]) => { |
| 126 | payload.forEach((typeDec: TypeDefinition) => { |
| 127 | typeRegistry[typeDec.name] = typeDec |
| 128 | }) |
| 129 | }) |
| 130 | |
| 131 | const c = fetch('/static/generated/ts_type_aliases.json') |
| 132 | .then((response) => { |
| 133 | return response.json() |
| 134 | }) |
| 135 | .then((payload: TypeAlias[]) => { |
| 136 | payload.forEach((typeAlias: TypeAlias) => { |
| 137 | typeAliasRegistry[typeAlias.name] = typeAlias |
| 138 | }) |
| 139 | }) |
| 140 | |
| 141 | await Promise.all([a, b, c, d]) |
| 142 | } |
nothing calls this directly
no outgoing calls
no test coverage detected