Skip to content

Commit

Permalink
Merge pull request #456 from oclif/mdonnalley/improve-flag-types
Browse files Browse the repository at this point in the history
fix: improve flag types
  • Loading branch information
mshanemc committed Aug 6, 2022
2 parents 34e1ece + 6d0b4e1 commit 704d42c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interfaces/parser.ts
Expand Up @@ -201,4 +201,5 @@ export type CompletableOptionFlag<T> = OptionFlag<T> & {

export type CompletableFlag<T> = BooleanFlag<T> | CompletableOptionFlag<T>

export type FlagInput<T extends FlagOutput = {[flag: string]: unknown}> = { [P in keyof T]: CompletableFlag<T[P]> }
// eslint-disable-next-line @typescript-eslint/ban-types
export type FlagInput<T extends FlagOutput = object> = { [P in keyof T]: CompletableFlag<T[P]> }

0 comments on commit 704d42c

Please sign in to comment.