Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
fix: update typedefs to reflect API changes
Browse files Browse the repository at this point in the history
Add 4th optional parameter introduced by #77
  • Loading branch information
Gozala authored and vmx committed Apr 8, 2019
1 parent b29e421 commit 63cd5f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ export type Version = 0 | 1
export type Codec = string
export type Multihash = Buffer
export type BaseEncodedString = string
export type MultibaseName = string

declare class CID<a> {
constructor(Version, Codec, Multihash): void;
constructor(Version, Codec, Multihash, multibaseName?:MultibaseName): void;
constructor(BaseEncodedString): void;
constructor(Buffer): void;

Expand Down

0 comments on commit 63cd5f3

Please sign in to comment.