Monthly Archives: March 2023
BrowserPriorityTimers npm module
I’ve prepared npm package with the BrowserPriorityTimers class. It gives you ability to use timers that will not be throttled by the browser. This maybe useful at times when you want to keep your timers execute without interruption even when … Continue reading
Posted in npm modules, TypeScript
Tagged npm, timers, TypeScript, web-workers
Comments Off on BrowserPriorityTimers npm module
TypeScript: Add typing to the lodash entries helper
This is a followup post to the other one where we’ve added types to the lodash keys helper. This time we will add types to the entries helper, which is an alias to the toPairs helper, where we can also … Continue reading
Posted in TypeScript
Tagged TypeScript
Comments Off on TypeScript: Add typing to the lodash entries helper
TypeScript: Add typing to the lodash keys helper
With lodash (Version 4.17.21 at time of writing) and @types/lodash (Version 4.14.191 at time of writing) using the keys helper will lose the type information of the given object.