jaredwray / keyv

Simple key-value storage with support for multiple backends
https://keyv.org
MIT License
2.61k stars 143 forks source link

Export adapter options types #1140

Closed ciezczakmichal closed 1 month ago

ciezczakmichal commented 1 month ago

Describe the bug Adapters options type (KeyvMongoOptions, for example) is declared without with export keyword. In Keyv v4 I could use Keyv.Options in my TypeScript project to declare type for config, but in v5 options type isn't public.

How To Reproduce

// throws a TypeScript error - KeyvMongoOptions isn't exported
import { KeyvMongo, type KeyvMongoOptions } from '@keyv/mongo'
jaredwray commented 1 month ago

@ciezczakmichal - thanks so much to let us know about this. I have added them back in. https://github.com/jaredwray/keyv/pull/1141

Should be released in the next 2-3 weeks.