diff --git a/src/index.d.ts b/src/index.d.ts index 74de0fc..d9e720f 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -100,7 +100,7 @@ declare namespace PeerId { * PeerId is an object representation of a peer identifier. */ declare class PeerId { - constructor(id: Uint8Array | string, privKey?: PrivateKey, pubKey?: PublicKey); + constructor(id: Uint8Array, privKey?: PrivateKey, pubKey?: PublicKey); /** * Raw id.