0.3.0 • Published 2 months ago
tsfy v0.3.0
tsfy
— TypeScript for You
A collection of useful type-safe helpers for typescript projects!
Types
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
Functions
resultify
andresultifyAsync
: Convert error-throwing code to use Resultsextend
: Well-typed wrapper aroundObject.create
toUnknown
andtoUnknownList
: Cast to unknownunreachable
: Indicate unreachable code