simontonsoftware / s-libs

A collection of libraries for any of javascript, rxjs, or angular.
MIT License
43 stars 5 forks source link

Refactor with `NoInfer<>` #119

Closed ersimont closed 5 months ago

ersimont commented 6 months ago

This should be useful for store.update/mutate once using TS 5.4. If the second args were noinfer, I think autocomplete would work for users typing out arguments.

ersimont commented 5 months ago

Not going to go down this route. It breaks code where the function is generic, e.g.:

store.update(omit, 'b');