typescript type value as key of another object code example Example: typescript object key from other object const object: { [K in keyof MyInterface]: any } = {}