ExtractAdapterReturnType
import { ExtractAdapterReturnType } from "@hyper-fetch/core"
Description
Defined in types/fetch.types.ts:4
Preview
type ExtractAdapterReturnType<T> = ResponseReturnType<ExtractResponseType<T>, ExtractErrorType<T>, ExtractAdapterType<T>>;
Structure
{
data: GenericDataType | null;
error: GenericErrorType | null;
extra: T extends AdapterType<any, any, any, infer A, any> ? A : never | null;
status: T extends AdapterType<any, any, infer S, any, any> ? S : never | null;
success: boolean;
}