You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can extend 'IDynamicModuleLoaderProps' interface in your *.d.ts (like in global.d.ts). Just add:
declare module 'redux-dynamic-modules-react'{exportinterfaceIDynamicModuleLoaderProps{/** Explicitly name children as a prop to work with @types/react@18 */children: React.ReactNode;}}
Thanks @mrluscus ! I just want to add that in our case without importing redux-dynamic-modules-react other error appeared. It was complaining that DynamicModuleLoader is not exported.
Our solution was:
Create file redux-dynamic-modules-react.d.ts (optional, you may add lines below to global.d.ts)
#192 fixes TS errors since DefinitelyTyped updated react types to v18.
The text was updated successfully, but these errors were encountered: