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

Commit 63cd5f3

Browse files
Gozalavmx
authored andcommitted
fix: update typedefs to reflect API changes
Add 4th optional parameter introduced by #77
1 parent b29e421 commit 63cd5f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js.flow

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ export type Version = 0 | 1
44
export type Codec = string
55
export type Multihash = Buffer
66
export type BaseEncodedString = string
7+
export type MultibaseName = string
78

89
declare class CID<a> {
9-
constructor(Version, Codec, Multihash): void;
10+
constructor(Version, Codec, Multihash, multibaseName?:MultibaseName): void;
1011
constructor(BaseEncodedString): void;
1112
constructor(Buffer): void;
1213

0 commit comments

Comments
 (0)