Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Exports useful data structures for TypeScript.

License

Notifications You must be signed in to change notification settings

porkbrain/ts-data-structures

Repository files navigation

TypeScript Data Structures

Exports data structures for TypeScript. See the list of the structures below or in the docs/ directory.

Installation

npm i @bausano/data-structures -S

Optional

Optional data structure is based on Rust Option enum. It removes the hassle of checking for null or undefined in your code and provides set of useful methods for dealing with potentially missing data.

See the documentation for this structure.

Pipeline

Extracted from @exteranto/framework, pipeline sends data through filters that modify it. Filters functions take the data from previous filter as input and outputs an input for the next one.

See the documentation for this structure.

PriorityQueue

Inspired by Java's PriorityQueue<T extends Sortable>. Sorts elements based on the comparison function the type T provides and also optionally limits the size.

See the documentation for this structure.

Result

Work in progress.

Vector

Work in progress.

About

Exports useful data structures for TypeScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published