23 lines
465 B
JavaScript
23 lines
465 B
JavaScript
|
//// [templateStringsArrayTypeDefinedInES5Mode.ts]
|
||
|
|
||
|
class TemplateStringsArray {
|
||
|
}
|
||
|
|
||
|
function f(x: TemplateStringsArray, y: number, z: number) {
|
||
|
}
|
||
|
|
||
|
f({}, 10, 10);
|
||
|
|
||
|
f `abcdef${ 1234 }${ 5678 }ghijkl`;
|
||
|
|
||
|
//// [templateStringsArrayTypeDefinedInES5Mode.js]
|
||
|
var TemplateStringsArray = (function () {
|
||
|
function TemplateStringsArray() {
|
||
|
}
|
||
|
return TemplateStringsArray;
|
||
|
})();
|
||
|
function f(x, y, z) {
|
||
|
}
|
||
|
f({}, 10, 10);
|
||
|
f "abcdef" + 1234 + 5678 + "ghijkl";
|