PeerId: string & {
    __peerId: true;
}

A branded type for peer IDs

Type declaration

  • __peerId: true