Trie implements TxDb interface fully

This commit is contained in:
Jaco Greeff
2018-09-01 22:44:45 +02:00
parent c59b3347fc
commit 130163b74e
2 changed files with 16 additions and 4 deletions
+2 -2
View File
@@ -21,6 +21,6 @@ export interface BaseDb {
put (key: Uint8Array, value: Uint8Array): void;
}
export interface TxDb extends BaseDb {
transaction (fn: () => boolean): boolean;
export interface TxDb <T = any> extends BaseDb {
transaction (fn: () => boolean): T;
}