This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Export IPFS instance type #3439
Export IPFS instance type #3439
Changes from 3 commits
daaeaa9
5cde0a5
6dff406
0dfe6d2
cdd60e3
d3e2cfe
2405c1c
76939dd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be simpler to do this instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not work because
@typedef {import('ipfs-core/src/components')} IPFS
will not overlap onto the exportsGenerated
d.ts
file:We can't use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Xmader I realize that, but point I was trying to make is, having export type
IPFS
is just simpler and in the nutshell will give us:Furthermore I expect that as we adopt approach proposed in #3413 we might end up with
IPFS
interface that in the future could be exported in place ofIPFS
type.That said, it's an @achingbrain call