/**
 * Extracts the union of all values from a const object.
 *
 * @example
 * const STATUS = { ACTIVE: 'ACTIVE', INACTIVE: 'INACTIVE' } as const;
 * type Status = ValueOf<typeof STATUS>; // 'ACTIVE' | 'INACTIVE'
 */
export type ValueOf<T> = T[keyof T];
