This would be even nicer if TypeScript added type inference for tagged template literals, like in this issue [1]. Then you could write:<p><pre><code> const schema = proto`
syntax = "proto3";
message Person { ... }
`;
type Person = typeof schema['Person'];
</code></pre>
And you could get built-in schema validation with a sophisticated enough type definition for `proto`, nice syntax highlighting in many tools with a nested grammar.<p>We would love to see this feature in TypeScript to be able to have type-safe template in lit-html without an external tool.<p>The issue hasn't seen much activity lately, but it would be good to highlight this library as another use case.<p>[1]: <a href="https://github.com/microsoft/TypeScript/issues/33304">https://github.com/microsoft/TypeScript/issues/33304</a>