2015-06-03 00:47:23 +02:00
|
|
|
//// [asiPreventsParsingAsAmbientExternalModule02.ts]
|
|
|
|
|
|
|
|
var declare: number;
|
|
|
|
var module: string;
|
|
|
|
|
|
|
|
module container {
|
|
|
|
declare // this is the identifier 'declare'
|
|
|
|
module // this is the identifier 'module'
|
|
|
|
"my external module" // this is just a string
|
|
|
|
{ } // this is a block body
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [asiPreventsParsingAsAmbientExternalModule02.js]
|
|
|
|
var declare;
|
|
|
|
var module;
|
2015-06-03 21:05:53 +02:00
|
|
|
var container;
|
|
|
|
(function (container) {
|
|
|
|
declare; // this is the identifier 'declare'
|
|
|
|
module; // this is the identifier 'module'
|
|
|
|
"my external module"; // this is just a string
|
|
|
|
{ } // this is a block body
|
|
|
|
})(container || (container = {}));
|