I'm using a youtube Iframe which has the attribute type, apparently type isn't a property that exists on Iframe. How would I add this attribute to the Iframe type definition?
The definition of the Iframe in my react component:
<iframe
id="ytplayer"
type="text/html"
src={someSource}
frameBorder="0">
</iframe>
The Error that TS is throwing:
Property 'type' does not exist on type 'DetailedHTMLProps<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>'
I have tried something like the following to little avail:
interface HTMLIFrameElement {
type?: string;
}