mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-24 18:52:34 +00:00
fix: ts constructor types (#130)
This commit is contained in:
parent
224b30cb65
commit
d40d588776
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user