types(Toast): incorrect definition of 'setDefaultOptions' method (#5582)

This commit is contained in:
KyLeo 2020-01-15 13:13:55 +08:00 committed by neverland
parent 67e2a2759c
commit 12535588ab

2
types/toast.d.ts vendored
View File

@ -41,7 +41,7 @@ export interface Toast {
fail(options?: ToastOptions | ToastMessage): VanToast;
clear(all?: boolean): void;
install(): void;
setDefaultOptions(options: string | ToastOptions): void;
setDefaultOptions(type: ToastType | ToastOptions, options?: ToastOptions): void;
resetDefaultOptions(options?: string): void;
allowMultiple(allow: boolean): void;
}