Skip to content

Type Alias: FakeHandler ​

ts
type FakeHandler = (req) => 
  | HttpResponse
| Promise<HttpResponse>;

Answers each request a FakeTransport receives.

Parameters ​

ParameterType
reqHttpRequest

Returns ​

| HttpResponse | Promise<HttpResponse>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.