effect-io-ai

Package: effect
Module: Types

Types.VoidIfEmpty

Conditional type that returns void if S is an empty object type, otherwise returns S.

Signature

type VoidIfEmpty<S> = keyof S extends never ? void : S

Source

Since v3.19.20