@binarymuse/ts-stdlib
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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<T> - a type that represents a value (Some<T>) or the absence of one (None)
  • Result<T, E> - a type that represents a successful result (Ok<T>) or an error (Err<E>)
  • Rc<T> - a reference counted resource

Container Types:

  • Deque<T> - a double-ended queue, implemented with a doubly-linked list

Installation

npm install @binarymuse/ts-stdlib
# or
pnpm add @binarymuse/ts-stdlib
# or
yarn add @binarymuse/ts-stdlib

Documentation

Package Sidebar

Install

npm i @binarymuse/ts-stdlib

Weekly Downloads

30

Version

0.3.0

License

MIT

Unpacked Size

91.4 kB

Total Files

13

Last publish

Collaborators

  • binarymuse