We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad7597 commit 00756fbCopy full SHA for 00756fb
TS.fsx
@@ -234,7 +234,7 @@ let EmitProperties flavor prefix (emitScope: EmitScope) (i: Browser.Interface)=
234
| None -> ()
235
236
getAddedItems ItemKind.Property flavor
237
- |> Array.filter (matchInterface i.Name)
+ |> Array.filter (fun addedItem -> (matchInterface i.Name addedItem) && (prefix <> "declare var " || not(OptionCheckValue false addedItem.ExposeGlobally)))
238
|> Array.iter emitPropertyFromJson
239
240
let EmitMethods flavor prefix (emitScope: EmitScope) (i: Browser.Interface) =
inputfiles/sample.json
@@ -2,6 +2,7 @@
2
{
3
"kind": "property",
4
"interface": "Window",
5
+ "exposeGlobally": false,
6
"name": "URL",
7
"type": "URL"
8
},
0 commit comments