Browse Source

Expose the TypeScript object inside the ts worker

Orta 3 years ago
parent
commit
79f4a4cf75
1 changed files with 3 additions and 0 deletions
  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);
 	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;