Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ declare class CID {
static isCID(mixed: any): mixed is CID;

static codecs: Record<string, number>;

static CID: typeof CID;
}

export = CID
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,6 @@ const _CID = withIs(CID, {

_CID.codecs = codecs

_CID.CID = _CID

module.exports = _CID
3 changes: 3 additions & 0 deletions src/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ declare class CID<a> {
static codecs: { [string]: Codec };
static isCID(mixed): boolean;
static validateCID(mixed): void;
static CID: typeof CID;
}

export { CID }

export default CID
export type { CID }