typescript variable should be of type any property of an interface code example Example: typescript valueof interface type ValueOf<T> = T[keyof T];