@luolapeikko/ts-common
    Preparing search index...

    Class AsyncIterCore

    The core iteration functions.

    v1.1.3

    Index

    Methods

    • Asserts that the given value is an async iterable.

      Type Parameters

      • T

        The type of elements contained in the async iterable.

      Parameters

      • value: unknown

        The value to check.

      Returns asserts value is AsyncIterable<T, any, any>

      The value as an async iterable.

      If the value is not an async iterable.

      v1.1.3

    • Type guard that checks if a value is an async iterable object.

      Type Parameters

      • T

        The type of elements contained in the async iterable.

      Parameters

      • value: unknown

        The value to check for async iterability.

      Returns value is AsyncIterable<T, any, any>

      true if the value implements the AsyncIterable interface; otherwise, false.

      v1.1.3

    • Type guard that checks if a value is not an async iterable object.

      Type Parameters

      • T

        The type of elements contained in the async iterable.

      Parameters

      • value: unknown

        The value to check for non-async iterability.

      Returns value is unknown

      true if the value does not implement the AsyncIterable interface; otherwise, false.

      v1.1.3

    • Creates a CoreResult object which contains the result of the validation check.

      Type Parameters

      • V

      Parameters

      • value: V

        The value to check.

      Returns CoreResult<InferAsyncIterable<V>, TypeError>

      Core Result object.

      v1.1.3