Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 79f661e

Browse files
authoredAug 5, 2021
fix: typescript errors (#3781)
Generic types were missed off the refs api and added to multihashers.
1 parent 7fdba64 commit 79f661e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎packages/ipfs-core-types/src/index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import type { BlockCodec } from 'multiformats/codecs/interface'
2222
import type { MultibaseCodec } from 'multiformats/bases/interface'
2323
import type { MultihashHasher } from 'multiformats/hashes/interface'
2424

25-
interface RefsAPI extends Refs {
26-
local: Local
25+
interface RefsAPI<OptionExtension = {}> extends Refs<OptionExtension> {
26+
local: Local<OptionExtension>
2727
}
2828

2929
export interface IPFS<OptionExtension = {}> extends RootAPI<OptionExtension> {
@@ -61,8 +61,8 @@ interface Codecs {
6161
}
6262

6363
interface Hashers {
64-
getHasher: (code: number | string) => Promise<MultihashHasher<any, any>>
65-
listHashers: () => Array<MultihashHasher<any, any>>
64+
getHasher: (code: number | string) => Promise<MultihashHasher>
65+
listHashers: () => MultihashHasher[]
6666
}
6767

6868
export type {

0 commit comments

Comments
 (0)
This repository has been archived.