Skip to content

Commit 4a8f99c

Browse files
committed
fix: typos
1 parent 11eb1f9 commit 4a8f99c

File tree

3 files changed

+10
-27
lines changed

3 files changed

+10
-27
lines changed

src/runtime/handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { AxiosResponse } from 'axios';
2+
import type { RequestConfigChanger, RouteConfig } from '../types';
23
import {
34
ejectFromRequest,
45
ejectFromResponse,

src/types.d.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/types.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
2+
3+
export type RouteConfig = (
4+
config?: AxiosRequestConfig,
5+
) => [number, unknown] | Promise<[number, unknown]>;
6+
7+
export type RequestConfigChanger = (
8+
config: InternalAxiosRequestConfig,
9+
) => InternalAxiosRequestConfig;

0 commit comments

Comments
 (0)