From 64cc1e1ea7da77f1553ac127e9fef1905f7c78da Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Sun, 2 May 2021 11:57:22 +0100 Subject: [PATCH] fix: add missing type import (#3664) And generic format type too. --- packages/ipfs-http-client/src/types.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ipfs-http-client/src/types.d.ts b/packages/ipfs-http-client/src/types.d.ts index 582bbfebf3..0579c49520 100644 --- a/packages/ipfs-http-client/src/types.d.ts +++ b/packages/ipfs-http-client/src/types.d.ts @@ -2,8 +2,9 @@ import { Format as IPLDFormat } from 'interface-ipld-format' import { Agent as HttpAgent } from 'http' import { Agent as HttpsAgent } from 'https' import { Multiaddr } from 'multiaddr' +import { CodecName } from 'multicodec' -export type LoadFormatFn = (name: CodecName) => Promise +export type LoadFormatFn = (name: CodecName) => Promise> export interface Options { host?: string