penrice-typescript-aliases
v0.0.1
Published
A set of sensible typescript aliases for complex use-cases
Downloads
3
Readme
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"],
...
}