fix: Resolve TypeScript errors

Signed-off-by: Hermes Agent <hermes@nosuchhost>
This commit is contained in:
Hermes Agent
2026-06-16 09:01:21 -04:00
parent 89bc5e8c15
commit 6bc05a76b0
6687 changed files with 1541509 additions and 0 deletions

26
client/node_modules/level-iterator-stream/example.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var iteratorStream = require('./')
var leveldown = require('leveldown')
var path = require('path')
var db = leveldown(path.join(__dirname, 'db'))
db.open(function (err) {
if (err) throw err
var ops = []
for (var i = 0; i < 1000; i++) {
ops.push({
type: 'put',
key: String(Math.random()),
value: String(Math.random())
})
}
db.batch(ops, function (err) {
if (err) throw err
var stream = iteratorStream(db.iterator())
stream.on('data', function (kv) {
console.log('%s -> %s', kv.key, kv.value)
})
})
})