UNPKG

type-fns

Version:

A set of types, type checks, and type guards for simpler, safer, and easier to read code.

9 lines (8 loc) 261 B
/** * the shape of an empty object * * usecase * - the type `{}` unfortunately actually means "anything not null and not undefined" in typescript * - this exposes a type that represents a literal Empty object */ export type Empty = Record<string, never>;