Skip to content

RecordToUnion

Category
Basic Operation
Alias
Record2UnionRToUR2U

Get union type given record type U.

Usage

ts
import type { 
RecordToUnion
} from '@utype/shared'
type
Props
= {
name
: string;
visible
: boolean; }
// Expect: string | boolean type
RecordToUnionProps
=
RecordToUnion
<
Props
>