Skip to content

Commit 53c606f

Browse files
committed
fix: LiteralUnion type is not work
1 parent 3bf975c commit 53c606f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)