A collection of fun and/or useful things you can do with TypeScript.
Take everything you see here with a grain of salt. This is more or less a dump of code snippets with some tests and docs. I do not claim that all these functions, types and classes have good and correct naming, well done tests or follow good practices, etc. If no caveats are mentioned, then that doesn't neccessarly mean there aren't any.
That being said: feel free to be inspired and copy any bit of code you can find in this repository. Credit is appreciated. You are also welcome to make a PR for new additions and improvements. Make sure to checkout the list below for actually battle-tested libraries and helpful links.
Here you can find everything concerning collections:
Classes like Queue
and Stack
, but mostly operations to simplify your work with collections:
Create new collections based on other collections or reduce them to a certain value.
Special type guards are in the "types" section.
Functions that enable design by contract. A more sophisticated library of these is ts-code-contracts.
Decorator stuff
Various utilties that simplify patterns.
RFC 7807 utilities. Documentation is in part copied from this very RFC.
Here you can find common types, generic types and type guards.
This and that