typescript get type of property in interface code example Example: typescript valueof interface type ValueOf<T> = T[keyof T];