Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 471 Bytes

File metadata and controls

43 lines (31 loc) · 471 Bytes

typelab / utils / ValueOf

type ValueOf<T> = T[KeyOf<T>];

Extracts the values of an object type.

Type Parameters

Type Parameter Description

T

The object type.

Returns

The values of the object.

Example

// Values is string | number
type Values = ValueOf<{ a: string; b: number }>;