Skip to content

Commit

Permalink
Minor fix. Update Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhosseindhv committed Oct 15, 2022
1 parent b82ab20 commit ea744c0
Show file tree
Hide file tree
Showing 3 changed files with 260 additions and 293 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Thanks to all contributers who improved notistack by opening an issue/PR.

### `[email protected]`
###### Oct 15, 2022
* Fix TypeScript cannot be used as a JSX constructor [#485](https://github.com/iamhosseindhv/notistack/issues/485)

<br />

### `[email protected]`
###### Oct 15, 2022
* **@ryancrunchi** **@vwalsh** Fix TypeScript cannot be used as a JSX constructor [#485](https://github.com/iamhosseindhv/notistack/issues/485)
Expand Down
3 changes: 2 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,13 @@ export class SnackbarProvider extends React.Component<SnackbarProviderProps> {
enqueueSnackbar: ProviderContext['enqueueSnackbar'];

closeSnackbar: ProviderContext['closeSnackbar'];

render(): ReactNode;
}

export interface ProviderContext {
enqueueSnackbar: (message: SnackbarMessage, options?: OptionsObject) => SnackbarKey;
closeSnackbar: (key?: SnackbarKey) => void;
render(): ReactNode;
}

export function withSnackbar<P extends ProviderContext>(component: React.ComponentType<P>):
Expand Down
Loading

0 comments on commit ea744c0

Please sign in to comment.