浏览代码

Update tsWorker.ts

Orta Therox 3 年之前
父节点
当前提交
892c164a7b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/typescript/tsWorker.ts

+ 1 - 1
src/typescript/tsWorker.ts

@@ -496,4 +496,4 @@ export function create(ctx: worker.IWorkerContext, createData: ICreateData): Typ
 }
 
 /** Allows for clients to have access to the same version of TypeScript that the worker uses */
-export const typescript = ts;
+globalThis.ts = ts;