s-libs
s-libs copied to clipboard
A collection of libraries for any of javascript, rxjs, or angular.
E.g. ``` interface State { currentUser?: { name: string }; } store('currentUser')('name'); ``` Currently that causes a typescript error saying something like "never does not have a property 'name'". Instead...
The links are out of date. The repo is here: https://github.com/reduxjs/redux-devtools. The API docs are somewhere new, too.
`IsPageVisibleHarness` doesn't handle multiple subscribers to `document.addEventListener('visibilitychange')`. E.g. when using both `isPageVisible$()` and `keepWakeLock$()`.
Look for ways to simplify internal code with `infer extends`: https://dev.to/pffigueiredo/2-new-killer-features-coming-to-typescript-3b5j
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#const-type-parameters
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#overload-support-in-jsdoc
They stopped working with the v18 upgrade, and that tool is not intended or supported for public use.
Would this allow any improvement to `Deferred`? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
This is a new method in JS. See if it it compatible to reduce bundle size.