zaaack / keyv-file

File storage adapter for Keyv, using json to serialize data.
MIT License
69 stars 10 forks source link

Fix Type Error for iterator Function Return Type in KeyvFile Store Adapter #24

Closed Seifenn closed 2 months ago

Seifenn commented 2 months ago

Description:

This pull request addresses a type error in the index.d.ts file of the keyvfile library. The error was related to the return type of the iterator function in the KeyvStoreAdapter interface.

Details:

Issue: The iterator function's return type in the KeyvStoreAdapter interface was incorrectly specified, leading to type errors during TypeScript compilation. Fix: The return type of the iterator function has been updated to accurately reflect its behavior. The corrected type now aligns with the actual implementation and correctly specifies the type of values yielded by the iterator.

Changes:

Updated the iterator function return type in index.d.ts to AsyncGenerator<Array<string | Awaited | undefined>>.

Thank you for reviewing this pull request. Since i'm working on a project that uses keyv-file and when i installed it i found this type error.