simontonsoftware / s-libs

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

[signal-store] Use `const A` for `update()` and `mutate()` #121

Closed ersimont closed 5 months ago

ersimont commented 5 months ago

After upgrading typescript for v18, because it doesn't seem to work at the current version.

This change will help users avoid as const in their code for a case like this:

this.store.update(omit, 'linkStart' as const);