@hyper-fetch/core
Version:
Cache, Queue and Persist your requests no matter if you are online or offline!
8 lines (6 loc) • 296 B
text/typescript
import type { DispatcherOptionsType } from "dispatcher";
import { Dispatcher } from "dispatcher";
import type { ClientInstance } from "client";
export const createDispatcher = (client: ClientInstance, options?: DispatcherOptionsType) => {
return new Dispatcher(options).initialize(client);
};