keyv 4.2.6 → 4.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keyv",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "description": "Simple key-value storage with support for multiple backends",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.d.ts CHANGED
@@ -49,6 +49,12 @@ declare class Keyv<Value = any, Options extends Record<string, any> = Record<str
49
49
  has(key: string): Promise<boolean>;
50
50
  /** Iterator */
51
51
  iterator(namespace: string | undefined): AsyncGenerator<any, void, any>;
52
+ /**
53
+ * Closes the connection.
54
+ *
55
+ * Returns `undefined` when the connection closes.
56
+ */
57
+ disconnect(): Promise<void>;
52
58
  }
53
59
 
54
60
  declare namespace Keyv {