How TypeScript template literal types helped us with multiple database support
Blog post from Hasura
In November last year, TypeScript introduced template literal types which opened up new possibilities for developers. These types allowed for more precise control over string literals and made it easier to maintain code. At Hasura, we recently utilized these template literal types in our multiple database support feature. By using Path and PathValue types along with a get function, we were able to implement type-safe dot string notation and autocomplete features. This greatly improved the developer experience and allowed for safer code writing.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Developer Experience | 2 | 108 | 70 | 36 | -13% |
| Serverless | 1 | 835 | 111 | 40 | +53% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.