shaKY-iota / type-challenges

Collection of TypeScript type challenges with online judge
https://tsch.js.org/
MIT License
0 stars 0 forks source link

645 - Diff #29

Open shaKY-iota opened 2 years ago

shaKY-iota commented 2 years ago
// your answers
type Diff<O1 extends object, O2 extends object> = { [P in Exclude<keyof O1 | keyof O2, Extract<keyof O1, keyof O2>>]: (O1 & O2)[P] }