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

Track: Typescript types supportΒ #2945

@hugomrdias

Description

@hugomrdias

We will use JSDoc to declare types for the top level API first and internally we will add types incrementally where we feel it adds value.

A TS config will be added to the repo to enable type declaration generation from JSDoc comments.

Type declaration tests will be added as we see fit and we will add a ts type check job to our CI.

Repo track list

Done = βœ…
In Progress = 🚧
TODO = β›”

Status Repo/PR Owner
βœ… aegir ipfs/aegir#671 ipfs/aegir#701 -
βœ… ipfs-utils ipfs/js-ipfs-utils#89 -
βœ… interface-datastore ipfs/interface-datastore#56 -
βœ… datastore-core ipfs/js-datastore-core#39 -
βœ… datastore-level ipfs/js-datastore-level#53 -
βœ… datastore-pubsub ipfs/js-datastore-pubsub#60 @achingbrain
βœ… datastore-fs ipfs/js-datastore-fs#62 -
βœ… ipfs-repo ipfs/js-ipfs-repo#275 @hugomrdias
βœ… ipfs-unixfs ipfs/js-ipfs-unixfs#114 ipfs/js-ipfs-unixfs#122 @achingbrain
βœ… ipfs-bitswap ipfs/js-ipfs-bitswap#261 @Gozala
βœ… is-ipfs ipfs-shipyard/is-ipfs#39 @achingbrain
βœ… ipns ipfs/js-ipns#106 @achingbrain
βœ… ipfs-block-service ipfs/js-ipfs-block-service#136 @achingbrain
βœ… cids multiformats/js-cid#131 -
βœ… multihash multiformats/js-multihash#104 -
βœ… multibase multiformats/js-multibase#72 -
βœ… multiaddr multiformats/js-multiaddr#159 @hugomrdias
βœ… multicodec multiformats/js-multicodec#70 -
βœ… multihashing-async multiformats/js-multihashing-async#92 -
βœ… libp2p libp2p/js-libp2p#802 -
βœ… libp2p-interfaces https://github.com/libp2p/js-libp2p-interfaces -
β›” ipfsd-ctl
βœ… ipfs #3550 @achingbrain
βœ… err-code -

Documentation

https://github.com/ipfs/aegir/blob/master/md/ts-jsdoc.md

Improvement issues

ipfs/aegir#619 (comment)

External issues to track

TypeStrong/typedoc#1248 (comment)
microsoft/TypeScript#41672

Metadata

Metadata

Assignees

Labels

EpicP0Critical: Tackled by core team ASAPawesome endeavourexp/wizardExtensive knowledge (implications, ramifications) requiredkind/trackingA meta-issue for tracking worktopic/docsDocumentation

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions