Skip to content

michalczukm/typescript-who-even-need-template-literal-types-presentation

Repository files navigation

who-even-need-template-literal-types

👋 This is code for "Template Literal types in Typescript - who even need that?" presentation

All files with code samples can be found in ./code-examples

Description

TypeScript 4.1 was a minor release, but it bring one of biggest revelations in the language.

It introduced Template Literal types. I assume that you saw crazy examples with parsers, or SQL engine working pure on type system. Thats totally cool, but it doesn't answer the question - why would YOU use it, and who actually need it.

This short talk focuses on what Template Literal Types are, and what are more real use cases for them.

Presentation

Check it online - click

Appendix

During one of the presentations I got a question about tracing compiler operations and measuring its performance.

A: You can do it! There are even ready to use tools from TypeScript team - @typescript/analyze-trace`

More info on that:

This article compares runtime validators performance - you will find great example of usage of @typescript/analyze-trace.

For checking the traces you can use ui.perfetto.dev

About me

michalczukm.xyz

About

Code for my presentation about Template Literal Types in TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published