0.3.0 • Published 2 years 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
resultifyandresultifyAsync: Convert error-throwing code to use Resultsextend: Well-typed wrapper aroundObject.createtoUnknownandtoUnknownList: Cast to unknownunreachable: Indicate unreachable code