Skip to content

JanMalch/ts-experiments

Repository files navigation

ts-experiments

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.

153 exports Build, Test, Lint documentation: lacking coverage: abysmal

Contents

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.

36 exports


Functions that enable design by contract. A more sophisticated library of these is ts-code-contracts.

7 exports


Decorator stuff

4 exports


Various utilties that simplify patterns.

20 exports


RFC 7807 utilities. Documentation is in part copied from this very RFC.

3 exports


Here you can find common types, generic types and type guards.

68 exports


This and that

15 exports

Notable libraries and links

About

A collection of fun and/or useful things you can do with TypeScript.

Topics

Resources

Stars

Watchers

Forks

Languages