Skip to content

Commit

Permalink
chore: createSession is not optional on blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 5, 2024
1 parent 6d5ea4c commit b1c5fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interface/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ProgressOptions<DeleteBlockProgressEvents>, ProgressOptions<DeleteManyBlocksProg
* This method is optional to maintain compatibility with existing
* blockstores that do not support sessions.
*/
createSession?(root: CID, options?: CreateSessionOptions<GetBlockProgressEvents>): Promise<Blockstore>
createSession(root: CID, options?: CreateSessionOptions<GetBlockProgressEvents>): Promise<Blockstore>
}

export interface BlockRetrievalOptions <ProgressEvents extends ProgressEvent<any, any> = ProgressEvent<any, any>> extends AbortOptions, ProgressOptions<ProgressEvents> {
Expand Down

0 comments on commit b1c5fe9

Please sign in to comment.