diff --git a/src/types.ts b/src/types.ts index c1ba7fa..ada4cb4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -419,6 +419,8 @@ export declare function useSnackbar(): ProviderContext; export declare const enqueueSnackbar: ProviderContext['enqueueSnackbar']; export declare const closeSnackbar: ProviderContext['closeSnackbar']; -export declare const SnackbarContent: (props: SnackbarContentProps) => JSX.Element; +export declare const SnackbarContent: ( + props: SnackbarContentProps & React.RefAttributes +) => React.ReactElement; export declare const Transition: React.JSXElementConstructor; diff --git a/typedoc.json b/typedoc.json index cb0177c..452418a 100644 --- a/typedoc.json +++ b/typedoc.json @@ -8213,15 +8213,40 @@ "isExported": true }, "type": { - "type": "reference", - "id": 318, - "name": "SnackbarContentProps" + "type": "intersection", + "types": [ + { + "type": "reference", + "id": 318, + "name": "SnackbarContentProps" + }, + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "HTMLDivElement" + } + ], + "name": "RefAttributes" + } + ] } } ], "type": { "type": "reference", - "name": "Element" + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "ReactElement" } } ], @@ -8247,7 +8272,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 424, + "line": 426, "character": 31 } ],