Skip to content

Latest commit

 

History

History
136 lines (69 loc) · 37.4 KB

README.md

File metadata and controls

136 lines (69 loc) · 37.4 KB

Awesome Template Literal Types

Curated list of awesome Template Literal Types examples.

Handbook

Articles

Use Cases

dot notation string type-safe

dot notation string type-safe Illustration

Tweet

Example

document.querySelector

querySelector Illustration

Tweet

Example

Router params parsing

Extract Route Params Illustration

Tweet

Example

Expression parser

Expression Parser Illustration

Tweet

Example

JSON Parser

Tweet

GitHub

JSON Serializer

Tweet

Gist

GraphQL Typed AST

Tweet

GitHub

SQL Database

SQL Database Illustration

Tweet

Example

GitHub

CSS Parser

CSS Parser Illustration

Tweet

Example

ELIZA Bot

Eliza Bot Illustration

Tweet

Example

Typescript Type System Adventure - by Rick Love

Typescript Type System Adventure

Blog

Tweet

Github

Printf/Log

Similar to Idris' type-safe dependently-typed printf, but in TypeScript, working with console.log.

Github

Example

Bitwise Arithmetic

Bitwise Arithmetic

Example

Github

tRPC

TypeScript toolkit for building end-to-end type-safe APIs

The client above is not importing any code from the server, only it's type declarations.

Github

tRPC Demo

Split

Split a string value with a given sepatator

Split

Tweet

Example