Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ const options = program.opts(); // smart type

## Ambient module setup

An alternative approach is to setup `@commander-js/extra-typings` as an ambient module and a development-only dependency. We only worked
this out recently so it isn't being promoted as the suggested method yet!
An alternative approach is to setup `@commander-js/extra-typings` as an ambient module and a development-only dependency.

Add a simple ambient module file to your project to use the enhanced typings instead of the default typings:

Expand Down
21 changes: 13 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commander-js/extra-typings",
"version": "14.0.0",
"version": "15.0.0-0",
"description": "Infer strong typings for commander options and action handlers",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -43,11 +43,11 @@
},
"homepage": "https://github.com/commander-js/extra-typings#readme",
"peerDependencies": {
"commander": "~14.0.0"
"commander": "~15.0.0-0"
},
"devDependencies": {
"@types/node": "^22.10.1",
"commander": "~14.0.0",
"commander": "~15.0.0-0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^10.0.1",
"globals": "^17.0.0",
Expand Down