ValuesOf<T>: T extends Record<string, unknown>
    ? T[keyof T]
    : never

Extracts the type info for values inside an object.

Type Parameters

  • T

Example

type Value = ValuesOf<{ logLevel: 'WARN', silent: false, verbose: 3 }>;
// => false | "WARN" | 3

Generated using TypeDoc