Skip to content

Commit

Permalink
chore: build before publish and export all blockstore types
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed May 14, 2021
1 parent 1c1a4ae commit 21980fe
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"build": "lerna run build",
"lint": "lerna run lint",
"release": "lerna publish"
"release": "lerna run build && lerna publish"
},
"homepage": "https://github.com/ipfs/js-ipfs-interfaces/tree/master#readme",
"bugs": "https://github.com/ipfs/js-ipfs-interfaces/issues",
Expand Down
44 changes: 42 additions & 2 deletions packages/interface-blockstore/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,50 @@
import {
Pair as StorePair
Pair as StorePair,
Batch as StoreBatch,
QueryFilter as StoreQueryFilter,
QueryOrder as StoreQueryOrder,
Query as StoreQuery,
KeyQueryFilter as StoreKeyQueryFilter,
KeyQueryOrder as StoreKeyQueryOrder,
KeyQuery as StoreKeyQuery,
Store
} from 'interface-store'
import {
CID
} from 'multiformats'

export interface Pair extends StorePair<CID, Uint8Array> {

}
}

export interface Batch extends StoreBatch<CID, Uint8Array> {

}

export interface Blockstore extends Store<CID, Uint8Array> {

}

export interface QueryFilter extends StoreQueryFilter<CID, Uint8Array> {

}

export interface QueryOrder extends StoreQueryOrder<CID, Uint8Array> {

}

export interface Query extends StoreQuery<CID, Uint8Array> {

}

export interface KeyQueryFilter extends StoreKeyQueryFilter<CID> {

}

export interface KeyQueryOrder extends StoreKeyQueryOrder<CID> {

}

export interface KeyQuery extends StoreKeyQuery<CID> {

}

0 comments on commit 21980fe

Please sign in to comment.