Auth0 Node.js SDK - v5.1.0
    Preparing search index...

    Interface Page<T, R>Template

    A page of results from a paginated API.

    T The type of the items in the page. R The type of the API response.

    interface Page<T, R = unknown> {
        data: T[];
        rawResponse: RawResponse;
        response: R;
        getNextPage(): Promise<Page<T, R>>;
        hasNextPage(): boolean;
        "[asyncIterator]"(): AsyncIterator<T, void, any>;
    }

    Type Parameters

    • T
    • R = unknown

    Implements

    • AsyncIterable<T>
    Index

    Methods

    • Retrieves the next page

      Returns Promise<Page<T, R>>

      this

    • Returns boolean

      whether there is a next page to load

    • Returns AsyncIterator<T, void, any>

    Properties

    data: T[]
    rawResponse: RawResponse
    response: R