htm icon indicating copy to clipboard operation
htm copied to clipboard

type checking templates

Open trusktr opened this issue 11 months ago • 1 comments

I hope TypeScript will land this

  • https://github.com/microsoft/TypeScript/issues/29432
  • https://github.com/microsoft/TypeScript/issues/33304
  • https://github.com/microsoft/TypeScript/issues/31422
  • https://github.com/microsoft/TypeScript/pull/49552

sooner than later, and I also saw

  • https://github.com/developit/htm/issues/73

In the meantime, have there been any other ways to type check developit/htm's tagged template strings? For example any fork of ts-lit-plugin or anything else?

trusktr avatar Feb 16 '25 05:02 trusktr

For reference, we've done this in gql.tada for GraphQL document strings https://github.com/0no-co/gql.tada

JoviDeCroock avatar Feb 17 '25 17:02 JoviDeCroock