fix ts error with client relayPeerID (#81)

This commit is contained in:
Pavel 2021-04-22 12:51:15 +03:00 committed by GitHub
parent 5b7db0bfcf
commit 4a8d835158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ case class TypescriptFunc(func: FuncCallable) {
| )
| .configHandler((h) => {
| h.on('${conf.getDataService}', 'relay', () => {
| return client.relayPeerId;
| return client.relayPeerId!;
| });
| h.on('getRelayService', 'hasReleay', () => {// Not Used
| return client.relayPeerId !== undefined;