Type alias Truthy<Actual>

Truthy<Actual>: Not<Falsy, Actual>

Generic type to check if value is not Falsy.

Example

Truthy<"" | "truthy">; // "truthy"

Type Parameters

  • Actual = unknown