File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as zsh from './zsh';
22import * as bash from './bash' ;
33import * as fish from './fish' ;
44import * as powershell from './powershell' ;
5- import type { Command as CommanderCommand } from 'commander' ;
5+ import type { Command as CommanderCommand , ParseOptions } from 'commander' ;
66import t , { RootCommand } from './t' ;
77import { assertDoubleDashes } from './shared' ;
88
@@ -75,7 +75,7 @@ export default function tab(instance: CommanderCommand): RootCommand {
7575
7676 // Override the parse method to handle completion requests before normal parsing
7777 const originalParse = instance . parse . bind ( instance ) ;
78- instance . parse = function ( argv ?: readonly string [ ] , options ?: any ) {
78+ instance . parse = function ( argv ?: readonly string [ ] , options ?: ParseOptions ) {
7979 const args = argv || process . argv ;
8080 const completeIndex = args . findIndex ( ( arg ) => arg === 'complete' ) ;
8181 const dashDashIndex = args . findIndex ( ( arg ) => arg === '--' ) ;
You can’t perform that action at this time.
0 commit comments