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

fix: typescript errors #3781

Merged
merged 2 commits into from
Aug 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/ipfs-core-types/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import type { BlockCodec } from 'multiformats/codecs/interface'
import type { MultibaseCodec } from 'multiformats/bases/interface'
import type { MultihashHasher } from 'multiformats/hashes/interface'

interface RefsAPI extends Refs {
local: Local
interface RefsAPI<OptionExtension = {}> extends Refs<OptionExtension> {
local: Local<OptionExtension>
}

export interface IPFS<OptionExtension = {}> extends RootAPI<OptionExtension> {
Expand Down Expand Up @@ -61,8 +61,8 @@ interface Codecs {
}

interface Hashers {
getHasher: (code: number | string) => Promise<MultihashHasher<any, any>>
listHashers: () => Array<MultihashHasher<any, any>>
getHasher: (code: number | string) => Promise<MultihashHasher>
listHashers: () => MultihashHasher[]
}

export type {
Expand Down