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
Dot notation in a type expression is namespace syntax, not member access. foo is not a type, it's just a value.
There are a few ways to refer to the type of the expression new foo.Bar() in this context; one straightforward way is InstanceType<typeof foo.Bar>.
Questions that are not bug reports or feature requests should go to Stack Overflow.
TypeScript Version: 3.8.0-dev.20191122
Search Terms: namespace default exports
Code
Expected behavior:
foo.Bar
to reference the Bar class type and compile correctly.Actual behavior:
Related issues: sindresorhus/ky#206
The text was updated successfully, but these errors were encountered: