Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: make ts happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 3, 2018
1 parent 3d8231c commit 9e6a13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function build(defaults: Partial<IOptionFlag<string>>): Definition<string
export function build<T>(defaults: Partial<IOptionFlag<T>>): Definition<T> {
return (options: any = {}): any => {
return {
parse: (i: string) => i,
parse: (i: string, _: any) => i,
...defaults,
...options,
input: [] as string[],
Expand All @@ -61,7 +61,7 @@ export function build<T>(defaults: Partial<IOptionFlag<T>>): Definition<T> {

export function boolean<T = boolean>(options: Partial<IBooleanFlag<T>> = {}): IBooleanFlag<T> {
return {
parse: b => b,
parse: (b, _) => b,
...options,
allowNo: !!options.allowNo,
type: 'boolean',
Expand Down

0 comments on commit 9e6a13d

Please sign in to comment.