浏览代码

Expose the TypeScript object inside the ts worker

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

+ 3 - 0
src/typescript/tsWorker.ts

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