import React, { ElementType } from 'react'; import { CommonHTMLAttributes } from './commonHTMLAttributes'; export type AllElementPropsWithoutRef = React.ComponentPropsWithoutRef & CommonHTMLAttributes; export type AllElementPropsWithRef = React.ComponentProps & CommonHTMLAttributes; /** * example: type Base = { a: undefined; b: boolean; c: string }; type Overrides = { a: string; b: string; d: string; e: number }; type Result = MergeAndOverrideProps; const test: Result = { a: 'a', b: 'f', c: 'c', d: 'd', e: 1 }; */ export type MergeAndOverrideProps = Omit & C;