We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is valid typescript
interface Bar { name: string; } export default Bar;
However, the compiler complains if I do this:
export default interface Bar { name: string; }
I would have expected this to work in both cases as if I substitute interface with class it works fine.
interface
class
Reading the spec here, https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#11.3.4, shows that interfaces cannot be part of a default export, but why?
Thanks!
The text was updated successfully, but these errors were encountered:
Duplicate of #3792. Please use the GitHub search feature before logging new issues.
Sorry, something went wrong.
Apologies. I didn't search
No branches or pull requests
This is valid typescript
However, the compiler complains if I do this:
I would have expected this to work in both cases as if I substitute
interface
withclass
it works fine.Reading the spec here, https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#11.3.4, shows that interfaces cannot be part of a default export, but why?
Thanks!
The text was updated successfully, but these errors were encountered: