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.
1 parent 3bf975c commit 1d77d2dCopy full SHA for 1d77d2d
src/utils/types.ts
@@ -1,3 +1,3 @@
1
/** https://github.com/Microsoft/TypeScript/issues/29729 */
2
// eslint-disable-next-line @typescript-eslint/ban-types
3
-export type LiteralUnion<T extends U, U> = T | (U & {});
+export type LiteralUnion<T extends U, U> = T | (U & Record<never, never>);
0 commit comments