We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11eb1f9 commit 4a8f99cCopy full SHA for 4a8f99c
src/runtime/handler.ts
@@ -1,4 +1,5 @@
1
import type { AxiosResponse } from 'axios';
2
+import type { RequestConfigChanger, RouteConfig } from '../types';
3
import {
4
ejectFromRequest,
5
ejectFromResponse,
src/types.d.ts
src/types.ts
@@ -0,0 +1,9 @@
+import type { AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
+
+export type RouteConfig = (
+ config?: AxiosRequestConfig,
+) => [number, unknown] | Promise<[number, unknown]>;
6
7
+export type RequestConfigChanger = (
8
+ config: InternalAxiosRequestConfig,
9
+) => InternalAxiosRequestConfig;
0 commit comments