Skip to content

Commit d8eca59

Browse files
committed
Fixing ambient external module grammar
1 parent f18ec2e commit d8eca59

5 files changed

+2
-2
lines changed
-4.27 KB
Binary file not shown.
160 Bytes
Binary file not shown.
471 Bytes
Binary file not shown.
-1018 Bytes
Binary file not shown.

doc/spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5494,7 +5494,7 @@ Except for *ImportDeclarations*, *AmbientModuleElements* always declare exported
54945494
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.
54955495
54965496
  *AmbientExternalModuleDeclaration:*
5497-
   `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
5497+
   `declare` `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
54985498
54995499
  *AmbientExternalModuleBody:*
55005500
&emsp;&emsp;&emsp;*AmbientExternalModuleElements<sub>opt</sub>*
@@ -6054,7 +6054,7 @@ This appendix contains a summary of the grammar found in the main document. As d
60546054
&emsp;&emsp;&emsp;`export`*<sub>opt</sub>*&emsp;*ImportDeclaration*
60556055
60566056
&emsp;&emsp;*AmbientExternalModuleDeclaration:*
6057-
&emsp;&emsp;&emsp;`module`&emsp;*StringLiteral*&emsp;`{`&emsp; *AmbientExternalModuleBody*&emsp;`}`
6057+
&emsp;&emsp;&emsp;`declare`&emsp;`module`&emsp;*StringLiteral*&emsp;`{`&emsp; *AmbientExternalModuleBody*&emsp;`}`
60586058
60596059
&emsp;&emsp;*AmbientExternalModuleBody:*
60606060
&emsp;&emsp;&emsp;*AmbientExternalModuleElements<sub>opt</sub>*

0 commit comments

Comments
 (0)