0.0.1 • Published 4 years ago

penrice-typescript-aliases v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

The Problem

Learning typescript is hard. I found I made good progress at times but others I was back into the docs trying to remember some alien syntax or concept. I needed some way to commit these concepts

This Solution

Being able to keep a collection of types related to newly-learnt concepts helped loads. As I progressed so did this collection - the simpler ones could be removed (or replaced by language features) and more complex ones took their place.

⚠️ Therefore, this package probably isn't suited as a dependency but I hope that people can see the approach.

Credits

Utility Types is a thoroughly better package as a library of types. I include it as a dev dependency and will only add to it when utility types doesn't cover a need

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

yarn add -D penrice-typescript-aliases
// tsconfig.json
{
  "include": ["src/**/*", "./node_modules/penrice-typescript-aliases"],
  ...
}