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
I had seen this recommended in the Effective TypeScript book, but not acted on it as I was not familiar with the pattern (Item 49: Provide a Type for this in Callbacks).
commander.js/lib/command.js
Lines 511 to 527 in 83c3f4e
The passed
action
functionfn
receives the current command asthis
context in line 523. However, this context is missing in the current typings.commander.js/typings/index.d.ts
Line 525 in 83c3f4e
Happy to provide a PR for this!
The text was updated successfully, but these errors were encountered: