images-viewer-vue3
Version:
A lightweight image viewer for Vue3
15 lines (14 loc) • 415 B
TypeScript
type MsgState = 'success' | 'error' | 'warning' | 'info';
interface MsgOptions {
title: string;
message: string;
type: MsgState;
duration: number;
}
export declare const useMessage: () => {
success: (opt?: Partial<MsgOptions>) => void;
error: (opt?: Partial<MsgOptions>) => void;
warning: (opt?: Partial<MsgOptions>) => void;
info: (opt?: Partial<MsgOptions>) => void;
};
export {};