From 79f4a4cf75aef44ab059330e69e9adf8088d3d4a Mon Sep 17 00:00:00 2001 From: Orta Date: Mon, 15 Nov 2021 22:37:42 +0000 Subject: [PATCH] Expose the TypeScript object inside the ts worker --- src/typescript/tsWorker.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/typescript/tsWorker.ts b/src/typescript/tsWorker.ts index 3cf342a6..b4b7c1c1 100644 --- a/src/typescript/tsWorker.ts +++ b/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;