You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code below, I'm attempting to refer to the foo module, but the compiler issues an error:
declare module foo{interfaceBar{}}// Error: Block-scoped variable 'foo' used before its declaration.letfoo: foo.Bar;
Is this expected? And how do I make this work without using `var'? I would like to use the same name for the module and the variable in order to avoid introducing unnecessary globals..