Skip to content

Commit 39bb9c9

Browse files
author
Jostein Kringlen
committed
feat: add warn to types
1 parent c5e5935 commit 39bb9c9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/core/types.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { CSSProperties } from 'react';
22

3-
export type ToastType = 'success' | 'error' | 'loading' | 'blank' | 'custom';
3+
export type ToastType =
4+
| 'success'
5+
| 'error'
6+
| 'loading'
7+
| 'blank'
8+
| 'custom'
9+
| 'warn';
410
export type ToastPosition =
511
| 'top-left'
612
| 'top-center'
@@ -68,10 +74,9 @@ export type ToastOptions = Partial<
6874
>
6975
>;
7076

71-
export type DefaultToastOptions = ToastOptions &
72-
{
73-
[key in ToastType]?: ToastOptions;
74-
};
77+
export type DefaultToastOptions = ToastOptions & {
78+
[key in ToastType]?: ToastOptions;
79+
};
7580

7681
export interface ToasterProps {
7782
position?: ToastPosition;

0 commit comments

Comments
 (0)