Skip to content

Commit

Permalink
Fixes #217 - Correct enqueueSnackbar typing
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhosseindhv committed Jan 23, 2020
1 parent 3db14e6 commit 97fd1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Thanks to all contributers who improved notistack by opening an issue/PR.
* **@molynerd**: Add support to update content of snackbar in place [#50](https://github.com/iamhosseindhv/notistack/issues/50)
* **@david-chau**: Allow `asc`, `desc` or custom sort order of snackbars [#160](https://github.com/iamhosseindhv/notistack/issues/160)
* **@madaz**: Add higher priority to Snackbar styles [#202](https://github.com/iamhosseindhv/notistack/issues/202)
* **@svish**: Correct enqueueSnackbar typing [#217](https://github.com/iamhosseindhv/notistack/issues/217)


<br />
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type VariantClassKey = 'variantSuccess' | 'variantError' | 'variantInfo'
export type CombinedClassKey = VariantClassKey | ContainerClassKey | SnackbarClassKey;

export interface WithSnackbarProps {
enqueueSnackbar: (message: SnackbarMessage, options?: OptionsObject) => OptionsObject['key'] | null;
enqueueSnackbar: (message: SnackbarMessage, options?: OptionsObject) => OptionsObject['key'];
closeSnackbar: (key?: OptionsObject['key']) => void;
}

Expand Down

0 comments on commit 97fd1c7

Please sign in to comment.