diff --git a/packages/react/src/types/OverridableComponent.ts b/packages/react/src/types/OverridableComponent.ts deleted file mode 100644 index 558a8bb3d5..0000000000 --- a/packages/react/src/types/OverridableComponent.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { - RefAttributes, - FC, - ElementType, - ComponentPropsWithRef, -} from 'react'; - -export type OverridableComponent< - ComponentProps, - Element extends HTMLElement, -> = { - (props: ComponentProps & RefAttributes): ReturnType; - - ( - props: { - /** Override html element - * @deprecated Will be removed in favor of `asChild` - * @see [Github Issue](https://github.com/digdir/designsystemet/issues/1124) - */ - as?: As; - } & ComponentProps & - Omit, keyof ComponentProps>, - ): ReturnType; -} & Pick;