I am using notistack 0.8.8 with TypeScript 3.3.400 and Redux 4.0.1. When using my NotificationContainer (which follows the example provided in the source tree), I get the following TypeScript error:
ERROR in src/main/App.tsx(28,14):
TS2739: Type '{}' is missing the following properties from type 'Readonly<Pick<Pick<NotificationContainerProps & WithSnackbarProps, "removeNotification" | "notifications" | "enqueueSnackbar" | "closeSnackbar">, "removeNotification" | "notifications">>': removeNotification, notifications
removeNotifications and notifications are properties that should be injected by Redux.
Current Behavior
I am using notistack 0.8.8 with TypeScript 3.3.400 and Redux 4.0.1. When using my
NotificationContainer
(which follows the example provided in the source tree), I get the following TypeScript error:removeNotifications
andnotifications
are properties that should be injected by Redux.Expected Behavior
No errors :-)
Steps to Reproduce
NotificationContainer.tsx:
Usage in App.tsx:
The above error message (
App.tsx(28,14)
) points the the line<NotificationContainer/>
.It looks like if
connect
doesn't get picked up, because TS complains about these two properties.Your Environment
see above in Current Behaviour