From a72ce71a9d55ec32c2ae35f02de3a1a214737961 Mon Sep 17 00:00:00 2001 From: Donny Verduijn Date: Sat, 12 Oct 2024 20:35:44 +0200 Subject: [PATCH] intersect with Props upfront to simplify type resolution --- .../core/src/core/factory/create-polymorphic-component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@mantine/core/src/core/factory/create-polymorphic-component.ts b/packages/@mantine/core/src/core/factory/create-polymorphic-component.ts index 5bc066e5775..c57891211df 100644 --- a/packages/@mantine/core/src/core/factory/create-polymorphic-component.ts +++ b/packages/@mantine/core/src/core/factory/create-polymorphic-component.ts @@ -33,7 +33,7 @@ export function createPolymorphicComponent< type ComponentProps = PolymorphicComponentProps; type _PolymorphicComponent = ( - props: ComponentProps + props: ComponentProps & Props ) => React.ReactElement; type ComponentProperties = Omit>, never>;