1 import type { FetchDataType } from './serialize';
3 export type ResponseDataType = 'blob' | 'raw' | 'json' | 'text' | 'stream' | 'arrayBuffer';
4 export type FetchConfigMethod = 'post' | 'put' | 'patch' | 'delete' | 'get';
6 export interface FetchConfig extends Omit<RequestInit, 'mode' | 'credentials' | 'redirect'> {
8 method?: FetchConfigMethod;
9 params?: { [key: string]: string | number };
10 data?: { [key: string]: any };
11 input?: FetchDataType;
12 output?: ResponseDataType;