UNPKG

@ace-fetch/react

Version:

react adapter for @ace-fetch/core.

20 lines (19 loc) 455 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createFetch = void 0; function createFetch(client) { var _p = []; var fetch = { use: function (plugin) { _p.push(plugin); return this; }, // store regist apis _r: new Map(), // regist api plugins _p: _p, client: client, }; return fetch; } exports.createFetch = createFetch;