3 ms·
Neat, I hadn’t thought about the covariance/contravariance implications of structural typing when getting irritated by this shortcoming yesterday! Small nitpic
by cronin101 3y ago
Neat, I hadn’t thought about the covariance/contravariance implications of structural typing when getting irritated by this shortcoming yesterday!
Small nitpick, the `KeyboardShortcutEvent` snippet at the end would be a great place to showcase `Pick<Foo, “bar”|”baz”>`
- awayto 3y agoI thought of using Partial<T> for the last example, as well. Obviously this has its own implications; right tool for the job and all that.