access specific key in object typescript code example Example: typescript object key from other object const object: { [K in keyof MyInterface]: any } = {}