mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Expose the TypeScript object inside the ts worker
This commit is contained in:
parent
5bb2a27249
commit
79f4a4cf75
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue