A collection of useful utility types for TypeScript, including Option, Result, and more
npm install @binarymuse/ts-stdlib@binarymuse/ts-stdlib is a set of classes, utilities, and types to make working with TypeScript a little bit nicer. These concepts can be found in many different languages, although many of the implementations here are inspired by Rust.
The library includes:
Wrapper Types:
* [Option][option-docs] - a type that represents a value (Some) or the absence of one (None)
* [Result][result-docs] - a type that represents a successful result (Ok) or an error (Err)
* [Rc][rc-docs] - a reference counted resource
Container Types:
* [Deque][deque-docs] - a double-ended queue, implemented with a doubly-linked list
```
npm install @binarymuse/ts-stdlibor
pnpm add @binarymuse/ts-stdlibor
yarn add @binarymuse/ts-stdlib
* [Library docs][library-docs]
* Wrapper types:
* [Option][option-docs]Result
* [][result-docs]Rc
* [][rc-docs]Deque
* Container types:
* [
[library-docs]: https://binarymuse.github.io/ts-stdlib/
[option-docs]: https://binarymuse.github.io/ts-stdlib/modules/Option.html
[result-docs]: https://binarymuse.github.io/ts-stdlib/modules/Result.html
[rc-docs]: https://binarymuse.github.io/ts-stdlib/modules/Rc.html
[deque-docs]: https://binarymuse.github.io/ts-stdlib/modules/Deque.html