UNPKG

@younho9/types

Version:

A set of utility types for TypeScript

10 lines (8 loc) 256 B
import type {AlternativeAny} from './alternative-any.js'; import type {Falsy} from './falsy.js'; /** * {@link https://developer.mozilla.org/en-US/docs/Glossary/Truthy} * * @category Basic */ export type Truthy<T = AlternativeAny> = Exclude<T, Falsy>;