Add nested global member creation to shim (#35473)

This commit is contained in:
Wesley Wigham 2019-12-03 11:31:30 -08:00 committed by GitHub
parent a08d6ba4cf
commit e8748f8162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,11 @@
// @ts-ignore
if (typeof process === "undefined" || process.browser) {
/// TODO: this is used by VS, clean this up on both sides of the interface
//@ts-ignore
globalThis.TypeScript = globalThis.TypeScript || {};
//@ts-ignore
globalThis.TypeScript.Services = globalThis.TypeScript.Services || {};
//@ts-ignore
globalThis.TypeScript.Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory;