Prelude API
    Preparing search index...

    Type Alias TypePredicate<T, U>

    TypePredicate: (value: T, index: number) => value is U

    A type predicate function that narrows the type of values in an async iterable.

    Type Parameters

    • T

      The original type of values

    • U extends T

      The narrowed subtype

    Type Declaration

      • (value: T, index: number): value is U
      • Parameters

        • value: T
        • index: number

        Returns value is U