chore: update index.d.ts (#116)

This tells Typescript that `id` is immutable.
This commit is contained in:
Robert Kiel 2020-02-19 15:17:30 +01:00 committed by GitHub
parent 6870c8c4d7
commit 00819ba4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
src/index.d.ts vendored
View File

@ -105,7 +105,7 @@ declare class PeerId {
/**
* Raw id.
*/
id: Buffer;
readonly id: Buffer;
/**
* Private key.