Browse Source

Expose the TypeScript object inside the ts worker

Orta 3 năm trước cách đây
mục cha
commit
79f4a4cf75
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;