Documentation

Mistake on this page? Email us

Type parameters

  • T

Hierarchy

  • Page

Implements

  • IterableIterator<T>

Index

Constructors

constructor

  • new Page(from: any, data?: Array<T>, mapper?: function): Page
  • Parameters

    • from: any
    • Optional data: Array<T>
    • Optional mapper: function
        • (key: any): T
        • Parameters

          • key: any

          Returns T

    Returns Page

Properties

after

after: string

Entity id for fetch after it

continuationMarker

continuationMarker: string

Entity id for fetch after it

data

data: Array<T>

List of results.

hasMore

hasMore: boolean

Whether there are more results to display

order

order: Order

Order of returned records

pageSize

pageSize: number

The page size

totalCount

totalCount: number

Total number of records (Approximate number of results according to the API)

Methods

__@iterator

  • __@iterator(): IterableIterator<T>
  • Returns IterableIterator<T>

first

  • first(): T
  • Returns T

last

  • last(): T
  • Returns T

next

  • next(): IteratorResult<T>
  • Returns IteratorResult<T>

return

  • return(value?: T): IteratorResult<T>
  • Parameters

    • Optional value: T

    Returns IteratorResult<T>

throw

  • throw(e?: any): IteratorResult<T>
  • Parameters

    • Optional e: any

    Returns IteratorResult<T>