how to check type of interface in typescript code example Example: typescript valueof interface type ValueOf<T> = T[keyof T];