()
| 255 | |
| 256 | // do not add `Middleware` as return type so we can use _fns internally |
| 257 | export const createInterceptors = <Req, Res, Err, Options>() => ({ |
| 258 | error: new Interceptors<ErrInterceptor<Err, Res, Req, Options>>(), |
| 259 | request: new Interceptors<ReqInterceptor<Req, Options>>(), |
| 260 | response: new Interceptors<ResInterceptor<Res, Req, Options>>(), |
| 261 | }) |
| 262 | |
| 263 | const defaultQuerySerializer = createQuerySerializer({ |
| 264 | allowReserved: false, |