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
It is unreachable because Foo is not a name space, and variable bar is a part of instance of type Foo. In typescripts philosophy interface is virtual construction and you cant deal with it in any form except extending and inheritance (in other words it is compiler feature).
So, you cant deal with Foo as with namespace.
Also, you can try something like above to solve your problem
TypeScript Version: 1.8.0 (Playground) / 2.1.0-dev
Code
Expected behavior:
Behave exactly like this:
Actual behavior:
Cannot find namespace 'Foo'.
The text was updated successfully, but these errors were encountered: