Skip to content

Commit

Permalink
Correct no-arg check (fixes #48)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelotom committed Jun 18, 2019
1 parent 3faae61 commit 806387c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type RecordOf<U extends UnionTypes<any, any>> = U['_Record'];
export type UnionOf<U extends UnionTypes<any, any>> = U['_Union'];

export type Creators<Record, TaggedRecord, TagProp extends string> = {
[T in keyof Record]: {} extends UnTagged<Record[T], TagProp>
[T in keyof Record]: {} extends Required<UnTagged<Record[T], TagProp>>
? ((value?: {}) => TaggedRecord[keyof TaggedRecord])
: ((value: UnTagged<Record[T], TagProp>) => TaggedRecord[keyof TaggedRecord])
};
Expand Down

0 comments on commit 806387c

Please sign in to comment.