24 lines
549 B
TypeScript
24 lines
549 B
TypeScript
//// [tests/cases/compiler/taggedTemplateWithoutDeclaredHelper.ts] ////
|
|
|
|
//// [foo.ts]
|
|
function id<T>(x: T) {
|
|
return x;
|
|
}
|
|
|
|
export const result = id `hello world`;
|
|
|
|
//// [index.d.ts]
|
|
export { };
|
|
|
|
|
|
//// [foo.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.result = void 0;
|
|
var tslib_1 = require("tslib");
|
|
function id(x) {
|
|
return x;
|
|
}
|
|
exports.result = id(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["hello world"], ["hello world"])));
|
|
var templateObject_1;
|