Get the common keys between two objects, if a key is found to be shared between both, then the type of that key will take the first object's key type
An object that consist of what's common in both, else never
CommonKeys< { d: 'first objects d'; x: 'also first objects x' }, { d: 'd'; p: { b: 'b' }; x: { c: 'c' } } > // Results in { d: 'first objects d'; x: 'also first objects x' } Copy
CommonKeys< { d: 'first objects d'; x: 'also first objects x' }, { d: 'd'; p: { b: 'b' }; x: { c: 'c' } } > // Results in { d: 'first objects d'; x: 'also first objects x' }
Get the common keys between two objects, if a key is found to be shared between both, then the type of that key will take the first object's key type