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
See code below. It results in this typescript error:
No overload matches this call.
Overload 1 of 2, '(options: CliOptions<undefined, string[]>, callback?: CallbackFunction<TypeFlagWrapper<CliOptions<undefined, string[]>, string[]>> | undefined, argv?: string[] | undefined): { ...; }', gave the following error.
Type '(type: "known-flag" | "unknown-flag", flagOrArgv: string, value: string | undefined) => false' is not assignable to type 'IgnoreFunction'.
Target signature provides too few arguments. Expected 3 or more, but got 2.
Overload 2 of 2, '(options: CliOptions<Command<CommandOptions<string[]>, any>[], string[]>, callback?: CallbackFunction<TypeFlagWrapper<CliOptions<Command<CommandOptions<string[]>, any>[], string[]>, string[]>> | undefined, argv?: string[] | undefined): { ...; } | { ...; }', gave the following error.
Type '(type: "known-flag" | "unknown-flag", flagOrArgv: string, value: string | undefined) => false' is not assignable to type 'IgnoreFunction'.
Bug description
See code below. It results in this typescript error:
Reproduction
Node.js package manager
pnpm
Environment
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: