Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 5799974

Browse files
committed
🐛 Fix the some unitended changes to peer-id
1 parent 0ff5bb7 commit 5799974

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/interfaces/src/peer-id/types.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ interface CreateOptions {
1313
}
1414

1515
export interface PeerId {
16-
readonly id: Uint8Array;
17-
privKey: PrivateKey;
18-
pubKey: PublicKey;
16+
readonly id: Uint8Array
17+
privKey: PrivateKey | undefined
18+
pubKey: PublicKey | undefined
1919

2020
/**
2121
* Return the protobuf version of the public key, matching go ipfs formatting
2222
*/
23-
marshalPubKey ():Uint8Array;
23+
marshalPubKey: () => Uint8Array | undefined
2424

2525
/**
2626
* Return the protobuf version of the private key, matching go ipfs formatting

0 commit comments

Comments
 (0)