Logos DX
    Preparing search index...

    Type Alias Truthy<T>

    Truthy: T extends Falsy ? never : T

    Filters out falsy values from a type.

    Enables type-safe operations on values that are guaranteed to be truthy, eliminating the need for runtime falsy checks.

    Type Parameters

    • T
    function assertTruthy<T>(value: T): asserts value is Truthy<T>
    function compact<T>(arr: T[]): Truthy<T>[]