-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.d.ts
24 lines (20 loc) · 880 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
declare module 'vue-promise-btn' {
import _Vue, { Component, VNode, CreateElement, DirectiveOptions } from 'vue';
export type VuePromiseBtnOptions = {
btnLoadingClass?: string;
spinnerHiddenClass?: string;
action?: string;
minTimeout?: number;
disableBtn?: boolean;
showSpinner?: boolean;
autoHideSpinnerWrapper?: boolean;
loader?: Component | string;
stringHTMLRenderer?: (options: VuePromiseBtnOptions) => string;
componentRenderer?: (options: VuePromiseBtnOptions) => (h: CreateElement) => () => VNode;
};
export interface VuePromiseBtnDirectiveOptions extends VuePromiseBtnOptions {
promise?: Promise<any> | null;
}
export function install(Vue: typeof _Vue, options?: VuePromiseBtnOptions): void;
export function setupVuePromiseBtn(globalOptions: VuePromiseBtnOptions): DirectiveOptions;
}