Skip to content

Curated list of awesome Template Literal Types examples

Notifications You must be signed in to change notification settings

ghoullier/awesome-template-literal-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Awesome

TypeScript Awesome Template Literal Types

Curated list of awesome Template Literal Types examples.

Handbook

Articles

Videos

Examples

Use Cases

dot notation string type-safe

dot notation string type-safe Illustration

Tweet

document.querySelector

querySelector Illustration

Tweet

Router params parsing

Extract Route Params Illustration

Tweet

static-path library

Tweet

static-path repo

Video walkthrough

Expression parser

Expression Parser Illustration

Tweet

JSON Parser

Tweet

JSON Serializer

Tweet

Gist

GraphQL Typed AST

Tweet

SQL Database

SQL Database Illustration

Tweet

CSS Parser

CSS Parser Illustration

Tweet

ELIZA Bot

Eliza Bot Illustration

Tweet

Typescript Type System Adventure - by Rick Love

Typescript Type System Adventure

Blog

Tweet

Printf/Log

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

GitHub

Bitwise Arithmetic

Bitwise Arithmetic

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.

tRPC Demo

Split

Split a string value with a given sepatator

Split

Tweet

Privatized

Automaticly privatize methods prefixed by '_'

Privatized

Tweet

Join

Type safe ReadonlyArray<string>.join

String Array Join

Tweet

Extract all paths from object

Extract all paths from object

Tweet

Repeat

Tweet

schummar-translate

Extract typed ICU params from translation strings

kysely

A type-safe typescript SQL query builder

WebSite

chicane

A simple and safe router for React and TypeScript, based on template literal types capabilities.

Prefix Properties

Prefix all keys of a Record

Tweet

Typelevel Parser

TypeLevel DSL Parser

Type-Trident

A curated list of advanced type level madness

HypeScript

A simplified implementation of TypeScript's type system written in TypeScript's own type system

HypeScript implemenation example

Tweet

Anysort

Anysort,Flexible and Full Typed multi-properties sorter for nested objects

Anysort implemenation example

Wordle

A pure type only implementation of Wordle game

A pure type only implementation of Wordle game

pretty-cache-header

Cache-control header utility that parses human readable time strings into seconds. Time based values use Template Literal Types to help avoid passing invalid time string formats.

nanostores-router

A tiny URL router for Nano Stores state manager.

A tiny URL router for Nano Stores state manager.

dot-path-value

Safely get deep nested properties using dot notation.

Safely get deep nested properties using dot notation.

GitHub

infer-html-events

Infer event names out of HTML elements

Infer event names out of HTML elements.

Tweet

hotscript

Higher-Order TypeScript: A lodash-like library for types, with support for type-level lambda functions.

hotscript.mp4

Tweet

brouther

The brother router to help in React apps

Brouther router code example

hkt-toolbelt

✨ Functional and composable type utilities

hkt-toolbelt code example

string-ts

Strongly-typed string functions for all!

string-ts and zod example

typeskell

Experiment to declare typesclasses with programmatic type signatures.

typeskell example

gql.tada

🪄 Magical GraphQL query engine for TypeScript

gql.tada example

About

Curated list of awesome Template Literal Types examples

Topics

Resources

Stars

Watchers

Forks