tinymce / tinymce-react

Offical TinyMCE React component
MIT License
937 stars 152 forks source link

INT-3308: Overriden props are now typed as an internal `DoNotUse` type #527

Closed danoaky-tiny closed 1 month ago

danoaky-tiny commented 1 month ago

INT-3308

The previous props that were typed as never, are now typed as DoNotUse<message>. So when one of these props are assigned to, e.g.

<Editor
  init={{ selector: 'textarea' }}
/>

It will cause a TS error like this:

error TS2322: Type 'string' is not assignable to type 'DoNotUse<"selector prop is handled internally by the component">'.