vue-condition-watcher
Version:
Vue composition API for automatic data fetching. With conditions as the core. Easily control and sync to URL query string by conditions
48 lines (47 loc) • 1.26 kB
TypeScript
export declare function createEvents(): {
conditionEvent: {
on: (fn: (...args: any[]) => void) => {
off: () => void;
};
trigger: (...args: any[]) => void;
};
responseEvent: {
on: (fn: (...args: any[]) => void) => {
off: () => void;
};
trigger: (...args: any[]) => void;
};
errorEvent: {
on: (fn: (...args: any[]) => void) => {
off: () => void;
};
trigger: (...args: any[]) => void;
};
finallyEvent: {
on: (fn: (...args: any[]) => void) => {
off: () => void;
};
trigger: (...args: any[]) => void;
};
focusEvent: {
on: (fn: (...args: any[]) => void) => {
off: () => void;
};
trigger: (...args: any[]) => void;
};
reconnectEvent: {
on: (fn: (...args: any[]) => void) => {
off: () => void;
};
trigger: (...args: any[]) => void;
};
visibilityEvent: {
on: (fn: (...args: any[]) => void) => {
off: () => void;
};
trigger: (...args: any[]) => void;
};
stopFocusEvent: () => void;
stopReconnectEvent: () => void;
stopVisibilityEvent: () => void;
};