mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-25 02:22:17 +00:00
Tell Typescript that `isPeerId(id)` returns true if, and only if, `id` is of type `PeerId`. See https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates