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
master
Alexandr Tovmach 4 years ago committed by GitHub
parent 2b5a156604
commit ddfd32a3d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -198,7 +198,7 @@ export class RealTimeAPI {
/** /**
* Get Observalble to the Result of Method Call from Rocket.Chat Realtime API * 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(); let id = uuid();
this.sendMessage({ this.sendMessage({
msg: "method", msg: "method",

Loading…
Cancel
Save