Type Alias InvokeFetchResponse

The typical base return type of a fetch call

type InvokeFetchResponse = {
    data: unknown;
    headers: Headers;
    next?: (options?: PageCallOptions) => Promise<InvokeFetchResponse>;
    prev?: (options?: PageCallOptions) => Promise<InvokeFetchResponse>;
    status: number;
}
Index
data: unknown
headers: Headers
next?: (options?: PageCallOptions) => Promise<InvokeFetchResponse>

Fetches the page at links.next.href of the response. In a browser, relative links are resolved against the document base url, as fetch does. The call rejects with a PagingError without sending a request if the link doesn't resolve to the origin of the original call's host config, or in a browser to the origin of the base url when no host is configured.

prev?: (options?: PageCallOptions) => Promise<InvokeFetchResponse>

Fetches the page at links.prev.href of the response. In a browser, relative links are resolved against the document base url, as fetch does. The call rejects with a PagingError without sending a request if the link doesn't resolve to the origin of the original call's host config, or in a browser to the origin of the base url when no host is configured.

status: number