mcollina / async-cache-dedupe

Async cache with dedupe support
MIT License
613 stars 39 forks source link

Removing the need of CachedFunctions in Typescript #70

Closed thelinuxlich closed 1 year ago

thelinuxlich commented 1 year ago

Besides the additional typings, this PR adds a small change on the JS side, the define function now returns the Cache instance itself, so we can chain define calls and thus avoid manually defining CachedFunctions when using Typescript.

thelinuxlich commented 1 year ago

Strange CI error, doesn't happen in local dev.