diff --git a/packages/keyv/package.json b/packages/keyv/package.json index 66d621101..c4400e1e0 100644 --- a/packages/keyv/package.json +++ b/packages/keyv/package.json @@ -1,6 +1,6 @@ { "name": "keyv", - "version": "5.0.2", + "version": "5.0.3", "description": "Simple key-value storage with support for multiple backends", "type": "module", "main": "dist/index.cjs", diff --git a/packages/keyv/src/index.ts b/packages/keyv/src/index.ts index 2a3215552..4227c88a2 100644 --- a/packages/keyv/src/index.ts +++ b/packages/keyv/src/index.ts @@ -33,7 +33,7 @@ export type StoredDataRaw = DeserializedData | undefined; export type StoredData = StoredDataNoRaw | StoredDataRaw; export interface IEventEmitter { - on(event: string, listener: (...arguments_: any[]) => void): void; + on(event: string, listener: (...arguments_: any[]) => void): this; } export interface KeyvStoreAdapter extends IEventEmitter {