Skip to content

Commit 1d77d2d

Browse files
authored
fix: LiteralUnion type is not work (#119)
1 parent 3bf975c commit 1d77d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/** https://github.com/Microsoft/TypeScript/issues/29729 */
22
// eslint-disable-next-line @typescript-eslint/ban-types
3-
export type LiteralUnion<T extends U, U> = T | (U & {});
3+
export type LiteralUnion<T extends U, U> = T | (U & Record<never, never>);

0 commit comments

Comments
 (0)