0.3.9 • Published 4 years ago

link-type-definitions v0.3.9

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

link-type-definitions

GitHub stars

link type definitions

Link and use 3rd party typescript defintions without DefinitelyTyped.

I build this because it is not possible to use type definitions without copy pasting them to the src/@types folder or submitting a pull request (and getting it accepted) from DefinitelyTyped.

Please ★ this repo if you found it useful ★ ★ ★

Installation

npm install -g link-type-definitions

Dependencies

Usage

You can manually setup the project to link type definitions, or you can use the cli to automate the setup..

Setup your project

Navigate to the root of your project and run the following command.

link-type-definitions setup

This will add the following to your package.json.

package.json

{
  "scripts": {
    "postinstall": "link-type-definitions link"
  },
  "devDependencies": {
    "link-type-definitions": "^0.2.5"
  },
  "linkTypeDefinitions": []
}

You may need to reinstall your dependencies after running the setup.

npm install

Install npm modules that contain type definitions

npm install --save-dev <SOME_NPM_MODULE>

Link the modules types

Note that the module must be added to the package.json dependencies or devDependancies before linking its type definitions. Use the -S flag if you want to add the linked dependencies to the package.json.

link-type-definitions -S <SOME_NPM_MODULE>

Support

Submit an issue

Screenshots

Contribute a screenshot

Contributing

Review the guidelines for contributing

License

MIT License

Jam Risser © 2019

Changelog

Review the changelog

Credits

Support on Liberapay

A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.

Add some fuel if you'd like to keep me going!

Liberapay receiving Liberapay patrons

0.3.9

4 years ago

0.3.0

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.8

4 years ago

0.2.9

4 years ago

0.3.7

4 years ago

0.2.8

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago