diff --git a/src/index.d.ts b/src/index.d.ts index 23f2f235..870f1cc9 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -21,7 +21,7 @@ type CombinedClassKey = NotistackClassKey | SnackbarClassKey; export interface WithSnackbarProps { enqueueSnackbar: (message: string | React.ReactNode, options?: OptionsObject) => OptionsObject['key'] | null; - closeSnackbar: (key: OptionsObject['key']) => void; + closeSnackbar: (key?: OptionsObject['key']) => void; } export function withSnackbar

(component: React.ComponentType

):