Skip to content

Commit

Permalink
Make LiteralUnion type work for more types (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Sep 29, 2020
1 parent 0e8f4e3 commit 37e2816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/literal-union.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ const pet: Pet2 = '';
```
*/
export type LiteralUnion<
LiteralType extends BaseType,
LiteralType,
BaseType extends Primitive
> = LiteralType | (BaseType & {_?: never});

0 comments on commit 37e2816

Please sign in to comment.