vue-hooks-plus
Version:
Vue hooks library
25 lines (24 loc) • 724 B
TypeScript
import Fetch from '../Fetch';
type FetchInstanceType = Fetch<any, any[]>;
type Listener = (data: any) => void;
declare class RegisterDevToolsStore {
private requestInstances;
private listeners;
emit(payload: any): void;
subscribe(listener: Listener): () => void;
insert(key: string, payload: {
instance: any;
requestName: string;
} & any): void;
update(key: string, payload: any): void;
has(key: string): boolean;
reset(key: string): void;
getAll(): Map<string, {
instance: FetchInstanceType;
requestName: string;
type?: string;
time?: number;
}>;
}
declare const devToolsStore: RegisterDevToolsStore;
export default devToolsStore;