A curated list of advanced type level madness
-
bubble-sort | playground | tweet
Type level bubble sort algorithm -
insertion-sort | playground | tweet
Type level insertion sort algorithm -
tic-tac-toe | playground | tweet
Type level tic-tac-toe game -
classnames | playground | tweet
Type safe version of classnames package -
hex-to-rgb | playground | tweet
Type level hex to rgb color conversion -
url-parser | playground | tweet
Type level URL parser -
math | playground | tweet
Type level math operations -
mustache-interpolation | playground | tweet
Type level {{mustache}} string interpolator -
ds-tokenizer | playground | tweet
A theme tokenizer for design systems -
typed-reactintl | playground | tweet
A type safe version of ReactIntl package -
css-parser | playground | tweet
Very buggy type level CSS parser -
count-generic-args | playground | tweet
An interesting way of knowing if a generic argument is passed by the user or is set with default value (more info in tweet) -
tree-api | playground | tweet
Type safe tree api -
typed-regex-named-groups | playground | tweet
Typesafe RegExp named groups -
string-to-number | playground | tweet
String to number conversion (with floating number supports) -
Number Range type | playground | tweet
Range type which generates union of number between two numbers (with floating number supports)
Leetcode challenges
- Leetcode 1209 | playground | tweet
Remove All Adjacent Duplicates in String II - Leetcode 12 | playground | tweet
Roman to Integer
And the most crazy one:
- Type level parser - Tweet
An experimental tokenizer/parser/interpreter written entirely on type-level to push the limits of TypeScript's type system.
This repository is inspired by Type Gymnastic by g-plane.