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
Description
- 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'
...