isaacs / node-lru-cache

A fast cache that automatically deletes the least recently used items
http://isaacs.github.io/node-lru-cache/
ISC License
5.38k stars 353 forks source link

Build types locally, run tests in ts #235

Closed isaacs closed 2 years ago

isaacs commented 2 years ago

The lib itself is still JS so it can be hand-tuned, but the tests cover the whole lib, and are in TS, so any errors in the types should be apparent.

Porting the types from DefinitelyTyped, because there are some errors, and they're already out of date.

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
./index.js 3.79 KB (+5.9% 🔺)