forked from 77media/video-flow
16 lines
526 B
TypeScript
16 lines
526 B
TypeScript
import { GlobalMessage } from '@/components/common/GlobalMessage';
|
|
import { toast } from 'sonner';
|
|
|
|
declare global {
|
|
interface Window {
|
|
msg: GlobalMessage;
|
|
$message: {
|
|
success: (message: string, duration?: number) => void;
|
|
error: (message: string, duration?: number) => void;
|
|
warning: (message: string, duration?: number) => void;
|
|
info: (message: string, duration?: number) => void;
|
|
loading: (message: string) => ReturnType<typeof toast.promise>;
|
|
dismiss: () => void;
|
|
};
|
|
}
|
|
} |