Chains another async operation that may fail.
If the inner result is Err, fn is not called.
Async generator that yields individual items across all pages.
If any page fetch fails, the generator throws a PixivFetchError.
Transforms the success value.
If the inner result is Err, fn is not called.
Transforms the error value.
If the inner result is Ok, fn is not called.
Synchronous error mapper
Async generator that yields each page starting from the first.
If any page fetch fails, the generator throws a PixivFetchError.
Attaches callbacks for the resolution and/or rejection of the Promise.
A Promise for the completion of which ever callback is executed.
StaticfromWraps a Promise<T> into a ResultAsync<T, E>.
If the promise rejects, onError maps the rejection reason to E.
StaticfromStaticfromCreates a PaginatedResultAsync from a ResultAsync.
The first-page result
HTTP client for fetching subsequent pages
Extracts item array from a page
A
ResultAsync<TPage, PixivError>with additional.pages()/.items()async generators for consuming paginated pixiv list responses.Returned by all resource methods that produce a
nextUrlfield.