Appearance
Record2Union
RToU
R2U
Get union type given record type U.
import type { RecordToUnion } from '@utype/shared' type Props = { name: string; visible: boolean; } // Expect: string | boolean type RecordToUnionProps = RecordToUnion<Props>