I need to improve some features of React DOM elements. In d.ts
there is a list of DOM elements like
interface ReactDOM {
// HTML
a: HTMLFactory;
abbr: HTMLFactory;
address: HTMLFactory;
area: HTMLFactory;
article: HTMLFactory;
aside: HTMLFactory;
...
but in my JS every element is function wrapper for React's one. I need something like:
type MyHTMLFactory = DOMFactory<HTMLProps<HTMLElement> & SMTH>;
The question is how to tell TypeSript that i have object with the same keys but with diffrent type MyHTMLFactory