typescript property type from interface keys code example Example: typescript valueof interface type ValueOf<T> = T[keyof T];