TypeScript
ValueOf

ValueOf

Get the union type of all the values in an object.

Usage

import { ValueOf } from '@norr/typescript';
 
type Person = {
  name: string;
  age: number;
};
 
type ValueOfPerson = ValueOf<Person>; // string | number