Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface ApiListPromise<T>

    interface ApiListPromise<T> {
        "[toStringTag]": string;
        "[asyncIterator]"(): AsyncIterableIterator<T, any, any>;
        catch<TResult = never>(
            onrejected?: (reason: any) => TResult | PromiseLike<TResult>,
        ): Promise<PageResult<T> | TResult>;
        finally(onfinally?: () => void): Promise<PageResult<T>>;
        next(...__namedParameters: [] | [any]): Promise<IteratorResult<T, any>>;
        return?(value?: any): Promise<IteratorResult<T, any>>;
        then<TResult1 = PageResult<T>, TResult2 = never>(
            onfulfilled?: (value: PageResult) => TResult1 | PromiseLike<TResult1>,
            onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>,
        ): Promise<TResult1 | TResult2>;
        throw?(e?: any): Promise<IteratorResult<T, any>>;
    }

    Type Parameters

    • T

    Hierarchy

    • Promise<PageResult<T>>
    • AsyncIterableIterator<T>
      • ApiListPromise
    Index

    Properties

    "[toStringTag]": string

    Methods

    • Returns AsyncIterableIterator<T, any, any>

    • Attaches a callback for only the rejection of the Promise.

      Type Parameters

      • TResult = never

      Parameters

      • Optionalonrejected: (reason: any) => TResult | PromiseLike<TResult>

        The callback to execute when the Promise is rejected.

      Returns Promise<PageResult<T> | TResult>

      A Promise for the completion of the callback.

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

      Parameters

      • Optionalonfinally: () => void

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

      Returns Promise<PageResult<T>>

      A Promise for the completion of the callback.

    • Parameters

      • ...__namedParameters: [] | [any]

      Returns Promise<IteratorResult<T, any>>

    • Parameters

      • Optionalvalue: any

      Returns Promise<IteratorResult<T, any>>

    • Parameters

      • Optionale: any

      Returns Promise<IteratorResult<T, any>>