mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-12 11:50:54 -06:00
Fixing ambient external module grammar
This commit is contained in:
parent
f18ec2e4b3
commit
d8eca59ce9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -5494,7 +5494,7 @@ Except for *ImportDeclarations*, *AmbientModuleElements* always declare exported
|
||||
An *AmbientExternalModuleDeclaration* declares an external module. This type of declaration is permitted only at the top level in a source file that contributes to the global module (section [11.1](#11.1)). The *StringLiteral* must specify a top-level external module name. Relative external module names are not permitted.
|
||||
|
||||
  *AmbientExternalModuleDeclaration:*
|
||||
   `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
|
||||
   `declare` `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
|
||||
|
||||
  *AmbientExternalModuleBody:*
|
||||
   *AmbientExternalModuleElements<sub>opt</sub>*
|
||||
@ -6054,7 +6054,7 @@ This appendix contains a summary of the grammar found in the main document. As d
|
||||
   `export`*<sub>opt</sub>* *ImportDeclaration*
|
||||
|
||||
  *AmbientExternalModuleDeclaration:*
|
||||
   `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
|
||||
   `declare` `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
|
||||
|
||||
  *AmbientExternalModuleBody:*
|
||||
   *AmbientExternalModuleElements<sub>opt</sub>*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user