davidjbradshaw / iframe-resizer

Keep iFrames sized to their content.
https://iframe-resizer.com
Other
6.62k stars 977 forks source link

fix: react types #1240

Closed jlarmstrongiv closed 2 months ago

jlarmstrongiv commented 2 months ago

See https://github.com/davidjbradshaw/iframe-resizer/issues/1228#issuecomment-2066238569

I removed all module and namespace declarations, and the errors went away.

Please note that this is a major breaking change, as types are now imported rather than appended as a property to the default export. The types change also assumes that the react package is esm.