Skip to content

Commit fbaa365

Browse files
fix: toaster types (#1616)
1 parent da12d7d commit fbaa365

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

index.d.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,19 +2822,19 @@ export const toaster: {
28222822
/**
28232823
* Opens a Toast with an intent of none.
28242824
*/
2825-
notify: (title: string, settings?: ToasterSettings) => void
2825+
notify: (title: React.ReactNode, settings?: ToasterSettings) => void
28262826
/**
28272827
* Opens a Toast with an intent of success.
28282828
*/
2829-
success: (title: string, settings?: ToasterSettings) => void
2829+
success: (title: React.ReactNode, settings?: ToasterSettings) => void
28302830
/**
28312831
* Opens a Toast with an intent of warning.
28322832
*/
2833-
warning: (title: string, settings?: ToasterSettings) => void
2833+
warning: (title: React.ReactNode, settings?: ToasterSettings) => void
28342834
/**
28352835
* Opens a Toast with an intent of danger.
28362836
*/
2837-
danger: (title: string, settings?: ToasterSettings) => void
2837+
danger: (title: React.ReactNode, settings?: ToasterSettings) => void
28382838
/**
28392839
* Closes all visible Toasts.
28402840
*/
@@ -2843,6 +2843,10 @@ export const toaster: {
28432843
* Returns all visible Toasts.
28442844
*/
28452845
getToasts: () => Toast[]
2846+
/**
2847+
* Removes toast with specific id
2848+
*/
2849+
remove: (id: string) => void
28462850
}
28472851

28482852
export interface OverlayProps

0 commit comments

Comments
 (0)