Skip to content

Commit cb25e1f

Browse files
committed
Export RocksDB and RocksDBP interfaces
1 parent a06ccdf commit cb25e1f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/rocksdb/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export { default as rocksdb } from './rocksdb';
22
export { default as rocksdbP } from './rocksdbP';
3+
export type { RocksDB } from './rocksdb';
4+
export type { RocksDBP } from './rocksdbP';
35
export * from './types';

src/rocksdb/rocksdb.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,5 @@ interface RocksDB {
274274
const rocksdb: RocksDB = nodeGypBuild(path.join(__dirname, '../../'));
275275

276276
export default rocksdb;
277+
278+
export type { RocksDB };

src/rocksdb/rocksdbP.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,5 @@ const rocksdbP: RocksDBP = {
287287
};
288288

289289
export default rocksdbP;
290+
291+
export type { RocksDBP };

0 commit comments

Comments
 (0)