@woogie0303/easyfetch
Version:
#### [한국어 버전](./README_KO.md)
17 lines (13 loc) • 363 B
text/typescript
import { RequestInitWithNextConfig } from './nextProperty.type';
type EasyFetchResponse<T> = Omit<
Awaited<ReturnType<typeof fetch>>,
keyof Body | 'clone' | 'url'
> & {
body: T;
config: EasyFetchRequestType;
};
type EasyFetchRequestType = [
string | URL,
RequestInitWithNextConfig | undefined
];
export { EasyFetchRequestType, EasyFetchResponse };