Add allowUmdGlobalAccess flag

This commit is contained in:
Andrew Branch 2019-04-05 10:09:46 -07:00
parent 86f0d4b95a
commit 2ee93bf0f2
No known key found for this signature in database
GPG key ID: 22CCA4B120C427D2
3 changed files with 11 additions and 0 deletions

View file

@ -603,6 +603,12 @@ namespace ts {
category: Diagnostics.Source_Map_Options,
description: Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
},
{
name: "allowUmdGlobalAccess",
type: "boolean",
category: Diagnostics.Module_Resolution_Options,
description: Diagnostics.Allow_accessing_UMD_globals_from_modules,
},
// Experimental
{

View file

@ -4938,5 +4938,9 @@
"Convert parameters to destructured object": {
"category": "Message",
"code": 95075
},
"Allow accessing UMD globals from modules": {
"category": "Message",
"code": 95076
}
}

View file

@ -4580,6 +4580,7 @@ namespace ts {
allowJs?: boolean;
/*@internal*/ allowNonTsExtensions?: boolean;
allowSyntheticDefaultImports?: boolean;
allowUmdGlobalAccess?: boolean;
allowUnreachableCode?: boolean;
allowUnusedLabels?: boolean;
alwaysStrict?: boolean; // Always combine with strict property