devinoue / meta-typing-sandbox

Playing with the TypeScript type system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meta typing sandbox

Playing with the TypeScript type system.

⚠️Note: This project is for fun, not for practical use.

Radix Conversion

Conversion from binary to decimal

Arithmetic

Addition with string literal

Usually, addition in a type system uses a tuple type, but there was a limitation that it could not calculate more than 10000.

However, since TypeScript 4.8, it has become easier to convert strings to numbers, and I saw this post. I tried to imitate it and tried another way of addition by string type.

Sorting algorithm

Quick sort

Efficient, general-purpose sorting algorithm. See also

About

Playing with the TypeScript type system

License:MIT License


Languages

Language:TypeScript 80.4%Language:JavaScript 19.6%