v2.3.0
Additions
function $template(strs: TemplateStringsArray, ...elements: number[]) {
return +["+", [strs, elements], (string: string, el: number) => string + (el ? el + 1 : "")]
}
// Call
$template!`Hello ${1} world ${2}`;
// Result
"Hello 2 world 3";
Changes
- Remove
ttypescript
usage example (#59)
Bug fixes
- Fixes #56