Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Nov 26, 2023
1 parent d73f44a commit d9327a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MultiCoreIndexer extends TypedEmitter {

/**
*
* @param {import('hypercore')<T>[]} cores
* @param {import('hypercore')<T, any>[]} cores
* @param {object} opts
* @param {(entries: Entry<T>[]) => Promise<void>} opts.batch
* @param {StorageParam} opts.storage
Expand Down Expand Up @@ -93,7 +93,7 @@ class MultiCoreIndexer extends TypedEmitter {

/**
* Add a core to be indexed
* @param {import('hypercore')<T>} core
* @param {import('hypercore')<T, any>} core
*/
addCore(core) {
const coreIndexStream = new CoreIndexStream(core, this.#createStorage)
Expand Down
2 changes: 1 addition & 1 deletion lib/core-index-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CoreIndexStream extends Readable {
#drained = false

/**
* @param {import('hypercore')<T>} core
* @param {import('hypercore')<T, any>} core
* @param {(name: string) => import('random-access-storage')} createStorage
*/
constructor(core, createStorage) {
Expand Down

0 comments on commit d9327a9

Please sign in to comment.