Skip to content

v2.3.0

Compare
Choose a tag to compare
@GoogleFeud GoogleFeud released this 17 Jul 13:31
· 88 commits to dev since this release

Additions

  • Added require function to the raw context (#58)
  • Support for tagged template literal macros (#57):
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