Merge pull request #71 from alexandrtovmach/patch-1

fix: Extended typings for "callMethod"
master
Viraj Trivedi 2 years ago committed by GitHub
commit 8216ccedf4
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
*/
public callMethod(method: string, ...params: Array<{}>) {
public callMethod(method: string, ...params: Array<{} | null>) {
let id = uuid();
this.sendMessage({
msg: "method",

Loading…
Cancel
Save