A collection of useful type-safe helpers for typescript projects!
Option<T>
: Optionals, based on the Rust interfaceResult<T>
: Results, based on the Rust interfaceCache<T>
: Generic caching implementationsPipe<T>
: Eager, lazy, and asynchronous pipes__phantom__
: Phantom data marker
resultify
andresultifyAsync
: Convert error-throwing code to use Resultsextend
: Well-typed wrapper aroundObject.create
toUnknown
andtoUnknownList
: Cast to unknownunreachable
: Indicate unreachable code