Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DataModelCollectionResponseWithCursorResponse<TReturn, TNext>

Type parameters

  • TReturn = any

  • TNext = undefined

Hierarchy

Index

Properties

Promise

Promise: PromiseConstructor

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

autoPagingEach

autoPagingEach: AutoPagingEach<DataModel>

autoPagingToArray

autoPagingToArray: AutoPagingToArray<DataModel>

Methods

[Symbol.asyncIterator]

  • [Symbol.asyncIterator](): AsyncIterableIterator<DataModel>

catch

  • catch<TResult>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<DataModel | TResult>
  • Attaches a callback for only the rejection of the Promise.

    Type parameters

    • TResult = never

    Parameters

    • Optional onrejected: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null

      The callback to execute when the Promise is rejected.

    Returns Promise<DataModel | TResult>

    A Promise for the completion of the callback.

finally

  • Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

    Parameters

    • Optional onfinally: (() => void) | undefined | null

      The callback to execute when the Promise is settled (fulfilled or rejected).

    Returns Promise<DataModel>

    A Promise for the completion of the callback.

next

  • Parameters

    • Rest ...args: [] | [TNext]

    Returns Promise<IteratorResult<DataModel, TReturn>>

Optional return

  • return(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<DataModel, TReturn>>
  • Parameters

    • Optional value: TReturn | PromiseLike<TReturn>

    Returns Promise<IteratorResult<DataModel, TReturn>>

then

  • then<TResult1, TResult2>(onfulfilled?: ((value: DataModel) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>
  • Attaches callbacks for the resolution and/or rejection of the Promise.

    Type parameters

    • TResult1 = DataModel

    • TResult2 = never

    Parameters

    • Optional onfulfilled: ((value: DataModel) => TResult1 | PromiseLike<TResult1>) | undefined | null

      The callback to execute when the Promise is resolved.

    • Optional onrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null

      The callback to execute when the Promise is rejected.

    Returns Promise<TResult1 | TResult2>

    A Promise for the completion of which ever callback is executed.

Optional throw