Type Alias Falsy<T>

Narrows the given type parameter T to all its falsy sub-types.

Type Parameters

  • T

    The original type to narrow.

import type {Falsy} from '@augment-vir/assert';

type MyFalsy = Falsy<string | number>; // "" | 0

@augment-vir/assert