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
According to the grammar in the spec a TypeAliasDeclaration not permitted to appear inside a AmbientExternalModuleDeclaration.
For example, on DefinitelyTyped acl.d.ts contains:
declare module "acl" { type strings = string|string[]; }
This doesn't conform to the grammar, but tsc 1.5.0-beta is happy to accept it though.
TypeAliasDeclaration just needs to be added to the production of AmbientModuleElement in the spec as far as I can tell.
The text was updated successfully, but these errors were encountered:
Support for type aliases inside ambient module declarations. microsof…
6296481
…t/TypeScript#3004
Fixed in #4033.
Sorry, something went wrong.
ahejlsberg
No branches or pull requests
According to the grammar in the spec a TypeAliasDeclaration not permitted to appear inside a AmbientExternalModuleDeclaration.
For example, on DefinitelyTyped acl.d.ts contains:
This doesn't conform to the grammar, but tsc 1.5.0-beta is happy to accept it though.
TypeAliasDeclaration just needs to be added to the production of AmbientModuleElement in the spec as far as I can tell.
The text was updated successfully, but these errors were encountered: