ueberdb2 4.2.84 → 4.2.86
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.
- package/dist/index.d.ts +8 -4
- package/dist/index.js +3558 -3416
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -80,13 +80,13 @@ export declare class Database {
|
|
|
80
80
|
* underlying database driver. If null, a Promise is returned.
|
|
81
81
|
* @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
|
|
82
82
|
*/
|
|
83
|
-
set(key: string, value:
|
|
83
|
+
set(key: string, value: any, cb?: null, deprecated?: null): any;
|
|
84
84
|
/**
|
|
85
85
|
* @param key
|
|
86
86
|
* @param sub
|
|
87
87
|
* @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
|
|
88
88
|
*/
|
|
89
|
-
getSub(key: string, sub: string, callback?: null): any;
|
|
89
|
+
getSub(key: string, sub: string[], callback?: Function | null): any;
|
|
90
90
|
/**
|
|
91
91
|
* Adds or changes a subvalue of an entry.
|
|
92
92
|
*
|
|
@@ -97,13 +97,17 @@ export declare class Database {
|
|
|
97
97
|
* underlying database driver. If null, a Promise is returned.
|
|
98
98
|
* @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
|
|
99
99
|
*/
|
|
100
|
-
setSub(key: string, sub: string, value: string, cb?: null, deprecated?: null): any;
|
|
100
|
+
setSub(key: string, sub: string, value: string, cb?: Function | null, deprecated?: Function | null): any;
|
|
101
101
|
/**
|
|
102
102
|
* Flushes unwritten changes then closes the connection to the underlying database. After this
|
|
103
103
|
* returns, any future call to a method on this object may result in an error.
|
|
104
104
|
*
|
|
105
105
|
* @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
|
|
106
106
|
*/
|
|
107
|
-
close(callback?: null): any;
|
|
107
|
+
close(callback?: Function | null): any;
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Deprecated synonym of Database.
|
|
111
|
+
*/
|
|
112
|
+
export default Database;
|
|
109
113
|
//# sourceMappingURL=index.d.ts.map
|