We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TaggedUnion
1 parent bfcdbc4 commit e790c3fCopy full SHA for e790c3f
source/tagged-union.d.ts
@@ -7,7 +7,7 @@ Use-case: A shorter way to declare tagged unions with multiple members.
7
```
8
import type {TaggedUnion} from 'type-fest';
9
10
-type Tagged<Fields extends Record<string, unknown> = TaggedUnion<'type', Fields>
+type Tagged<Fields extends Record<string, Record<string, unknown>>> = TaggedUnion<'type', Fields>
11
12
// The TaggedUnion utility reduces the amount of boilerplate needed to create a tagged union with multiple members, making the code more concise.
13
type EventMessage = Tagged<{
0 commit comments