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

Commit

Permalink
fix: typescript errors (#3781)
Browse files Browse the repository at this point in the history
Generic types were missed off the refs api and added to multihashers.
  • Loading branch information
achingbrain committed Aug 5, 2021
1 parent 7fdba64 commit 79f661e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ipfs-core-types/src/index.d.ts
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

0 comments on commit 79f661e

Please sign in to comment.