From 806387c49b0d6dad05477b170fc88f5eeba1e185 Mon Sep 17 00:00:00 2001 From: Tom Crockett Date: Tue, 18 Jun 2019 09:45:15 -0700 Subject: [PATCH] Correct no-arg check (fixes #48) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c45a411..4559129 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,7 @@ export type RecordOf> = U['_Record']; export type UnionOf> = U['_Union']; export type Creators = { - [T in keyof Record]: {} extends UnTagged + [T in keyof Record]: {} extends Required> ? ((value?: {}) => TaggedRecord[keyof TaggedRecord]) : ((value: UnTagged) => TaggedRecord[keyof TaggedRecord]) };