Interface MethodFetch<T, U>
Callable
- __call(...args: [{}] extends MethodFetchArgs<T> ? Partial<MethodFetchArgs<T>> : MethodFetchArgs<T>): Promise<Required<(U["contentType"] extends SupportedContentType | undefined ? U : Omit<U, "body"> & { body: U["body"] | undefined }) | ResponseData<{ body: undefined; status: 500 }> & { res: Response }>>
-
Parameters
-
Rest ...args: [{}] extends MethodFetchArgs<T> ? Partial<MethodFetchArgs<T>> : MethodFetchArgs<T>
Returns Promise<Required<(U["contentType"] extends SupportedContentType | undefined ? U : Omit<U, "body"> & { body: U["body"] | undefined }) | ResponseData<{ body: undefined; status: 500 }> & { res: Response }>>