@prmichaelsen/tempalte
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

CI

Tempalte [sic]

Create type safe re-usable template strings.

  const salute = tempalte<{
    salutation: string,
    entity: string,
  }>()(
    "${salutation} ${entity}!"
  ),

  expect(salute({
    salutation: 'Hello',
    entity: 'Word',
  }).toBe('Hello World!');

Package Sidebar

Install

npm i @prmichaelsen/tempalte

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.95 kB

Total Files

5

Last publish

Collaborators

  • prmichaelsen