FlowTyped puts all definitions in the flow-typed directory, and we have a CLI flag to run against those files automatically. It would be cool if we could do the same for TypeScript types installed with npm/yarn. These files are dumped in node_modules/@types.
FlowTyped puts all definitions in the
flow-typed
directory, and we have a CLI flag to run against those files automatically. It would be cool if we could do the same for TypeScript types installed with npm/yarn. These files are dumped innode_modules/@types
.See the CLI code for FlowTyped for more information about how to add this feature. The
yargs
documentation should also be pretty helpful.