fix: ts constructor types (#130)

This commit is contained in:
Vasco Santos 2020-08-26 11:46:38 +02:00 committed by GitHub
parent 224b30cb65
commit d40d588776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
src/index.d.ts vendored
View File

@ -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.