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

Export all types from "ipfs-core-types" root. #3713

Closed
@ocknamo

Description

@ocknamo
  • Version:

ipfs-core: 0.7.1

  • Platform:

Ubuntu 20.04.2 LTS
64-bit

  • Subsystem:

ipfs-core-types: 0.5.1

Severity:

Low

Description:

It would be useful if all types were exported from the root of "ipfs-core-types".

Pros

  • Application build do not fail when change the place of type definition file.
  • Easy to find types via support of editor. (I wrote this issue because I had a hard time finding the "ImportCandidateStream".)
  • Import statement will be reduced.

Cons

I have no idea.

example

// ipfs-core-types/src/index.d.ts
...

export * from './utils'
export * from './root'
export * from './bitswap'
export * from './block'
...

Metadata

Metadata

Assignees

Labels

P2Medium: Good to have, but can wait until someone steps upeffort/daysEstimated to take multiple days, but less than a weekkind/maintenanceWork required to avoid breaking changes or harm to project's status quokind/wontfix-migration-availableneed/analysisNeeds further analysis before proceeding

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions