23.06.2015 Views

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.1 Enum Declarations ...................................................................................................................................................... 129<br />

9.2 Enum Members ............................................................................................................................................................ 130<br />

9.3 Declaration Merging .................................................................................................................................................. 131<br />

9.4 Constant Enum Declarations .................................................................................................................................. 132<br />

9.5 Code Generation ......................................................................................................................................................... 132<br />

10 Internal Modules .................................................................................................................................................................... 135<br />

10.1 Module Declarations.................................................................................................................................................. 135<br />

10.2 Module Body ................................................................................................................................................................ 136<br />

10.3 Import Declarations ................................................................................................................................................... 137<br />

10.4 Export Declarations .................................................................................................................................................... 138<br />

10.5 Declaration Merging .................................................................................................................................................. 139<br />

10.6 Code Generation ......................................................................................................................................................... 141<br />

11 Source Files and External Modules ................................................................................................................................. 143<br />

11.1 Source Files .................................................................................................................................................................... 143<br />

11.1.1 Source Files Dependencies................................................................................................................................. 145<br />

11.2 External Modules ......................................................................................................................................................... 145<br />

11.2.1 External Module Names ...................................................................................................................................... 146<br />

11.2.2 External Import Declarations ............................................................................................................................. 147<br />

11.2.3 Export Declarations ............................................................................................................................................... 147<br />

11.2.4 Export Assignments .............................................................................................................................................. 148<br />

11.2.5 CommonJS Modules ............................................................................................................................................. 148<br />

11.2.6 AMD Modules ......................................................................................................................................................... 150<br />

12 Ambients.................................................................................................................................................................................... 151<br />

12.1 Ambient Declarations ................................................................................................................................................ 151<br />

12.1.1 Ambient Variable Declarations ......................................................................................................................... 151<br />

12.1.2 Ambient Function Declarations ........................................................................................................................ 151<br />

12.1.3 Ambient Class Declarations ............................................................................................................................... 152<br />

12.1.4 Ambient Enum Declarations .............................................................................................................................. 152<br />

12.1.5 Ambient Module Declarations .......................................................................................................................... 152<br />

12.2 Ambient External Module Declarations ............................................................................................................. 153<br />

A Grammar .................................................................................................................................................................................... 155<br />

A.1 Types ................................................................................................................................................................................ 155<br />

A.2 Expressions .................................................................................................................................................................... 159<br />

A.3 Statements ..................................................................................................................................................................... 160<br />

A.4 Functions ........................................................................................................................................................................ 161<br />

A.5 Interfaces ........................................................................................................................................................................ 161<br />

A.6 Classes ............................................................................................................................................................................. 161<br />

A.7 Enums .............................................................................................................................................................................. 163<br />

A.8 Internal Modules ......................................................................................................................................................... 163<br />

A.9 Source Files and External Modules ...................................................................................................................... 164<br />

v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!