Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 413 Bytes

File metadata and controls

28 lines (23 loc) · 413 Bytes

Building

$ npm install
$ npm run build

Testing

TODO:

Types

type FetchService<
  Request extends Array<unknown> = [],
  Response = void
> = (
  ...args: [...Request, AbortSignal | undefined]
) => Promise<Response>;

type FetchHookResult<
  Request extends Array<unknown> = [],
  Response = void
> = {
  promise: Promise<Response>;
  fetcher: (...args: [...Request]) => void;
};