Innovenergy_trunk/frontend/node_modules/testcafe-safe-storage/lib/utils/template.js

22 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.T = exports.Template = void 0;
class Template {
constructor(t) {
this.template = t;
}
static create(x) {
if (typeof x === 'string')
return new Template(() => x);
return new Template(x);
}
format(...args) {
return this.template(...args);
}
}
exports.Template = Template;
function T(x) {
return Template.create(x);
}
exports.T = T;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMvdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsTUFBYSxRQUFRO0lBR2pCLFlBQXVCLENBQW9CO1FBQ3ZDLElBQUksQ0FBQyxRQUFRLEdBQUcsQ0FBQyxDQUFDO0lBQ3RCLENBQUM7SUFFRCxNQUFNLENBQUMsTUFBTSxDQUFvQyxDQUE2QjtRQUMxRSxJQUFJLE9BQU8sQ0FBQyxLQUFLLFFBQVE7WUFDckIsT0FBTyxJQUFJLFFBQVEsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUVqQyxPQUFPLElBQUksUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQzNCLENBQUM7SUFFRCxNQUFNLENBQUUsR0FBRyxJQUFPO1FBQ2QsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUM7SUFDbEMsQ0FBQztDQUNKO0FBakJELDRCQWlCQztBQUVELFNBQWdCLENBQUMsQ0FBc0MsQ0FBOEI7SUFDakYsT0FBTyxRQUFRLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQzlCLENBQUM7QUFGRCxjQUVDIn0=