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