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 c8a31a4 commit 11caa74Copy full SHA for 11caa74
packages/@mantine/modals/src/context.ts
@@ -41,9 +41,15 @@ export interface ModalsContextProps {
41
42
export interface MantineModalsOverride {}
43
44
-export type MantineModals = MantineModalsOverride extends { modals: infer M }
45
- ? M
46
- : Record<string, React.FC<ContextModalProps<any>>>;
+export type MantineModalsOverwritten = MantineModalsOverride extends {
+ modals: Record<string, React.FC<ContextModalProps<any>>>;
+}
47
+ ? MantineModalsOverride
48
+ : {
49
50
+ };
51
+
52
+export type MantineModals = MantineModalsOverwritten['modals'];
53
54
export type MantineModal = keyof MantineModals;
55
0 commit comments