Expose full ts object to global ts

This commit is contained in:
Orta 2021-11-16 14:43:02 +00:00
parent 6535feb2a5
commit 1b8bf663ae
4 changed files with 7 additions and 1 deletions

View file

@ -160240,4 +160240,5 @@ export var IndentStyle = ts.IndentStyle;
export var ScriptKind = ts.ScriptKind;
export var ScriptTarget = ts.ScriptTarget;
export var TokenClass = ts.TokenClass;
export var typescript = ts;
// END MONACOCHANGE

View file

@ -496,4 +496,5 @@ 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 */
globalThis.ts = ts;
// @ts-ignore
globalThis.ts = ts.typescript;