Type-Level TypeScript

Work at the type level: mapped and conditional types, tuples, exact entries, deep merges and keys that keep their types.

  1. 01

    Make a Read-Only Object Writable Again

    • easy
    • Code
  2. 02

    Keep Only an Object's String Fields

    • easy
    • Code
  3. 03

    Flatten Nested Arrays One Level, Typed

    • easy
    • Code
  4. 04

    List an Object's Values with Their Types

    • easy
    • Code
  5. 05

    Join Two Tuples, Position by Position

    • easy
    • Code
  6. 06

    Await an Object of Promises by Key

    • medium
    • Code
    • Pro
  7. 07

    Drop Null and Undefined Fields, Typed

    • medium
    • Code
  8. 08

    List an Object's Entries as Exact Pairs

    • medium
    • Code
    • Pro
  9. 09

    Merge Two Objects, Later Types Win

    • medium
    • Code
  10. 10

    Split a Tuple into Head and Tail

    • medium
    • Code
  11. 11

    Build an Enum Object from a List of Names

    • medium
    • Code
  12. 12

    Read Object Keys Without Losing Their Types

    • medium
    • Code
  13. 13

    Merge Overrides into Defaults at Any Depth

    • hard
    • Code
    • Pro
  14. 14

    Find the Required Fields Still Missing

    • hard
    • Code
  15. 15

    Bind Every Method to Its Object

    • hard
    • Code
    • Pro