Sinch Node.js SDK - v1.6.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>) | null,
        ): Promise<PageResult<T> | TResult>;
        finally(onfinally?: (() => void) | null): 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>)
                | null,
            onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null,
        ): 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>) | null

        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) | null

        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>>

    • Attaches callbacks for the resolution and/or rejection of the Promise.

      Type Parameters

      Parameters

      • Optionalonfulfilled: ((value: PageResult) => TResult1 | PromiseLike<TResult1>) | null

        The callback to execute when the Promise is resolved.

      • Optionalonrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | 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.

    • Parameters

      • Optionale: any

      Returns Promise<IteratorResult<T, any>>