Adding type-safety to Node-Cache
Published on in ESLint, JavaScript and TypeScript
Last updated on
Node-Cache (a JS library) has generic get
and set
methods,
but it's easy to accidentally misuse them.
I made a type-safer wrapper around the library.