Roaders / ts-command-line-args

A typescript wrapper for command-line-args that allow you to generate config from existing TS interfaces
26 stars 11 forks source link

requires @types/command-line-usage #24

Closed geofholbrook closed 2 years ago

geofholbrook commented 2 years ago

I find that in order to compile a project using this package, I have to install @types/command-line-usage myself as a dev dependency. Otherwise I get this:

node_modules/ts-command-line-args/dist/helpers/options.helper.d.ts:1:37 - error TS7016: Could not find a declaration file for module 'command-line-usage'. '/Users/geof.holbrook/Data/repos/bridge/node_modules/command-line-usage/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/command-line-usage` if it exists or add a new declaration (.d.ts) file containing `declare module 'command-line-usage';`

1 import { Content, OptionList } from 'command-line-usage';
Roaders commented 2 years ago

should be fixed in version 2.2.1. Let me know if there are any issues.