Skip to content

Commit

Permalink
Fix missing type references introduced in iamhosseindhv#519
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash authored Oct 15, 2022
1 parent a2c20bc commit 88e6eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class SnackbarProvider extends React.Component<SnackbarProviderProps> {

closeSnackbar: ProviderContext['closeSnackbar'];

render(): ReactNode;
render(): React.ReactNode;
}

export interface ProviderContext {
Expand All @@ -271,7 +271,7 @@ export interface ProviderContext {
export function withSnackbar<P extends ProviderContext>(component: React.ComponentType<P>):
React.ComponentClass<Omit<P, keyof ProviderContext>> & { WrappedComponent: React.ComponentType<P> };

export declare const SnackbarContent: (props: SnackbarContentProps) => JSX.element
export declare const SnackbarContent: (props: SnackbarContentProps) => React.ReactElement;

export function useSnackbar(): ProviderContext;

Expand Down

0 comments on commit 88e6eb6

Please sign in to comment.