Skip to content

Commit

Permalink
fix(toasts): update for latest loader changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Jul 28, 2024
1 parent 58eec11 commit 5df311d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,33 @@ export interface RouterHook {
export interface ToastData {
title: ReactNode;
body: ReactNode;
header?: ReactNode;
fullTemplateTitle?: ReactNode;
timestamp?: Date;
subtext?: ReactNode;
logo?: ReactNode;
icon?: ReactNode;
timestamp?: Date;
onClick?: () => void;
className?: string;
contentClassName?: string;
/** ms before toast popup is hidden. defaults to 5 seconds */
duration?: number;
/** ms before toast is removed from the tray. Valve's logic will always remove all toasts 48h after they are first viewed regardless of this value */
expiration?: number;
critical?: boolean;
eType?: number;
sound?: number;
/** Hidden 10min after first viewed */
showNewIndicator?: boolean;
playSound?: boolean;
showToast?: boolean;
}

export interface ToastNotification {
data: ToastData,
dismiss: () => void;
}

export interface Toaster {
toast(toast: ToastData): void;
toast(toast: ToastData): ToastNotification;
}

export interface FilePickerRes {
Expand Down

0 comments on commit 5df311d

Please sign in to comment.