jeffijoe/typesync
jeffijoe/typesync has 1,586 GitHub stars and 23 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 04:13 UTC. Last push 2026-01-29.
Install missing TypeScript typings for dependencies in your package.json.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalTypeSync
Install missing TypeScript typings for dependencies in your package.json.

Install
npm install -g typesync
You can also use it directly with npx which will install it for you:
npx typesync
Usage
typesync [path/to/package.json] [--dry]
Path is relative to the current working directory. If omitted, defaults to package.json.
Note: TypeSync only modifies your package.json - you still need to run an installer.
--dry[=fail]
If --dry is specified, will not actually write to the file, it only prints added/removed typings.
The same is true for --dry=fail, with the additional effect of failing the command in case there are changes.
This is useful for CI scenarios.
--ignoredeps
To ignore certain sections, you can use the --ignoredeps= flag. For example, to ignore devDependencies, use --ignoredeps=dev. To ignore multiple, comma-separate them, like this: --ignoredeps=deps,peer (ignores dependencies and peerDependencies).
--ignoredeps=deps— ignoresdependencies--ignoredeps=dev— ignoresdevDependencies--ignoredeps=peer— ignorespeerDependencies--ignoredeps=optional— ignoresoptionalDependencies
--ignorepackages
To ignore certain packages, you can use the --ignorepackages= flag. For example, to ignore nodemon, use --ignorepackages=nodemon.
To ignore multiple, comma-separate them, like this: --ignorepackages=nodemon,whatever (ignores nodemon and whatever).
Using a config file
Alternatively, you can use a TypeSync config file: .typesyncrc or a "typesync" section in your package.json. TypeSync will automatically search for configuration files. See cosmiconfig for details.
// .typesyncrc
{
"ignoreDeps": ["dev"],
"ignorePackages": ["nodemon"]
}
Run TypeSync automatically after every install
To run TypeSync and install packages automatically after every package install, create a file called install-with-types.sh with the following content:
npm install $1
npx typesync
npm install
If you use yarn, use this instead:
yarn add $1
yarn typesync
yarn
Run this command to make the file executable:
chmod +x install-with-types.sh
Add the following to package.json:
{
"scripts": {
"i": "./install-with-types.sh"
}
}
Then install packages like this:
npm run i <pkg name>
# Or with Yarn:
yarn i <pkg name>
Typings packages
TypeSync will add typings for packages that:
- have a
@types/packageavailable - don't already provide typings internally (the
typingsandtypesfield inpackage.json)
TypeSync will try to respect SemVer parity for the code and typings packages, and will fall back to the latest available typings package.
When writing the typings package version to package.json, the ~ SemVer range is used. This is because typings published via DefinitelyTyped align typings versions with library versions using major and minor only.
For example, if you depend on react@^16.14.0, then TypeSync will only look for typings packages that match 16.14.*.
Monorepos
TypeSync added support for monorepos in v0.4.0. It will look at packages/workspaces globs in package.json and sync every matching file in one fell swoop.
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!
Changelog
See CHANGELOG.md
Author
Jeff Hansen - @Jeffijoe
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,673 starspublic-apis/public-apis
A collective list of free APIs
496,921 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,017 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,107 stars