video-flow-b/app/types/global.d.ts
2025-09-06 16:58:21 +08:00

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;
};
}
}