`KeyvMulti.Options` has an incorrect type signature
Hello 👋🏽 !
I was using the [@keyvhq/multi](https://github.com/microlinkhq/keyvhq/tree/master/packages/multi#keyvhqmulti-) package while I noticed the [KeyvMulti.Options](https://github.com/microlinkhq/keyvhq/blob/master/packages/multi/src/index.d.ts#L14-L23) object has an incorrect type signature: both the `remote` and `local` options are currently set to a JS Map, while they should be probably set to a [Keyv type](https://github.com/microlinkhq/keyvhq/blob/master/packages/core/src/index.d.ts#L1-L29) instead (which uses a Map by default under the hood).
A Keyv instance is used by default the class's constructor in case no override is set: https://github.com/microlinkhq/keyvhq/blob/master/packages/multi/src/index.js#L6
I already fixed this on the project I'm working on by using a local `.d.ts` file, but I thought it'd be worth mentioning here, too 🤞🏽 .
关闭于 2024-07-30 0 条评论