Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResourceList<T>

Type Parameters

  • T extends DataModel

Hierarchy

  • ResourceList

Index

Constructors

  • new ResourceList<T>(data: T[], fetchMore?: FetchMoreFn, cursor?: string): ResourceList<T>

Properties

cursor?: string
data: T[]
fetchMore?: FetchMoreFn
takeIterator?: AsyncGenerator<any, void, any>

Accessors

  • get hasMore(): boolean

Methods

  • [Symbol.asyncIterator](): AsyncGenerator<any, void, any>
  • take(count: number): Promise<T[]>
  • takeJSON(count: number): Promise<Pick<T, Exclude<keyof T, "client">>[]>
  • takeReset(): void

Generated using TypeDoc