Get in O the type of a field of key K
O
K
to extract at
to extract from
[[Any]]
import {O} from 'ts-toolbelt' type User = { info: { name: string age: number payment: {} } id: number } type test0 = O.At<User, 'id'> // number
Get in
O
the type of a field of keyK