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

fix: types path for ipfs-core #3356

Merged
merged 2 commits into from
Oct 28, 2020
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
10 changes: 3 additions & 7 deletions packages/ipfs/src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/* eslint-disable jsdoc/valid-types */
'use strict'

const IPFS = require('ipfs-core')

/**
* @typedef { ReturnType<typeof IPFS['create']> extends Promise<infer U>
* ? U : never } IPFS
*/
// TODO: Fix TS issue that prevents use of require('ipfs-core') instead
// https://github.com/ipfs/js-ipfs/issues/3358
const IPFS = require('ipfs-core/src')
achingbrain marked this conversation as resolved.
Show resolved Hide resolved

module.exports = IPFS