Install missing TypeScript typings for dependencies in your package.json.
TypeScript JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
bin
src
.editorconfig
.gitattributes
.gitignore
.npmignore
.prettierrc
.travis.yml
LICENSE.md
README.md
package.json
tsconfig.build.json
tsconfig.json
tslint.json
typesync.gif
yarn.lock

README.md

typesync

Install missing TypeScript typings for dependencies in your package.json.

npm dependency Status devDependency Status Build Status Coveralls npm npm node

TypeSync

Install

npm install -g typesync

Usage

typesync [path/to/package.json] [--dry]

Path is relative to the current working directory. If omitted, defaults to package.json.

If --dry is specified, will not actually write to the file, it only prints added typings,

Note: typesync only modifies your package.json - you still need to run npm install, or — if drinking the k00laid — yarn.

Why?

Installing typings manually sucks. Flow has flow-typed which installs type definitions by looking at a package.json, which would be cool to have for TypeScript. Now we do!

Author

Jeff Hansen - @Jeffijoe