7 lines
258 B
JavaScript
7 lines
258 B
JavaScript
|
//// [declarationInAmbientContext.ts]
|
||
|
declare var [a, b]; // Error, destructuring declaration not allowed in ambient context
|
||
|
declare var {c, d}; // Error, destructuring declaration not allowed in ambient context
|
||
|
|
||
|
|
||
|
//// [declarationInAmbientContext.js]
|