-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSpecIssues related to the TypeScript language specificationIssues related to the TypeScript language specification
Milestone
Description
The grammar in Appendix A of the spec does not appear to allow the syntax:
declare module "foo" {
//...
}In particular, the grammar does not appear to allow the keyword declare to immediately precede the module keyword in the AmbientExternalModuleDeclaration production rule or any usage thereof. The compiler, however, does require the declare to be present. Am I missing something?
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSpecIssues related to the TypeScript language specificationIssues related to the TypeScript language specification