Home / Companies / Hasura / Blog / Post Details
Content Deep Dive

How TypeScript template literal types helped us with multiple database support

Blog post from Hasura

Post Details
Company
Date Published
Author
Aleksandra
Word Count
1,122
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

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.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Developer Experience 2 108 70 36 -13%
Serverless 1 835 111 40 +53%
Use This Data

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.