From ddfd32a3d71e81813677e167283b3d3a191e6a26 Mon Sep 17 00:00:00 2001 From: Alexandr Tovmach Date: Tue, 23 Feb 2021 00:24:26 +0200 Subject: [PATCH] fix: Extended typings for "callMethod" Based on Realtime API docs, method call should support `null` for dates https://docs.rocket.chat/api/realtime-api/method-calls/load-history --- src/RealTimeAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RealTimeAPI.ts b/src/RealTimeAPI.ts index 5866ca1..61e3a8b 100644 --- a/src/RealTimeAPI.ts +++ b/src/RealTimeAPI.ts @@ -198,7 +198,7 @@ export class RealTimeAPI { /** * Get Observalble to the Result of Method Call from Rocket.Chat Realtime API */ - public callMethod(method: string, ...params: Array<{}>) { + public callMethod(method: string, ...params: Array<{} | null>) { let id = uuid(); this.sendMessage({ msg: "method",