4 ms·
In the keyboard event example of only specifying the properties you want to test against, it would be better to use `Pick` to create a relational type off the o
by cjonas 3y ago
In the keyboard event example of only specifying the properties you want to test against, it would be better to use `Pick` to create a relational type off the original. That way if the property or types change (unlikely in this case), your type system will remain up-to-date.
- baerrie 3y agoYep, this highlights imo the real value of TS, not type safety for data integrity but instead for ease of development and refactoring