You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1011,7 +1011,15 @@ program
1011
1011
1012
1012
### TypeScript
1013
1013
1014
-
If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly. e.g.
1014
+
extra-typings: There is an optional project to infer extra type information from the option and argument definitions.
1015
+
This adds strong typing to the options returned by `.opts()` and the parameters to `.action()`.
1016
+
See [commander-js/extra-typings](https://github.com/commander-js/extra-typings) for more.
1017
+
1018
+
```
1019
+
import { Command } from '@commander-js/extra-typings';
1020
+
```
1021
+
1022
+
ts-node: If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly. e.g.
0 commit comments