Skip to content

Commit

Permalink
Merge pull request #9 from creat-or/PR-argskw
Browse files Browse the repository at this point in the history
Fix: typings for argskw as Object
  • Loading branch information
davidwdan authored Aug 2, 2017
2 parents c16b426 + 0d7b52f commit bc3278d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class Client {
.subscribe(this.webSocket);
}

public call(uri: string, args?: Array<any>, argskw?: Array<any>, options?: {}): Observable<any> {
public call(uri: string, args?: Array<any>, argskw?: Object, options?: {}): Observable<any> {
return this.session
.take(1)
.switchMapTo(new CallObservable(uri, this.messages, this.webSocket, args, argskw, options));
Expand All @@ -189,7 +189,7 @@ export class Client {
return this.session.switchMapTo(new RegisterObservable(uri, callback, this.messages, this.webSocket, options));
}

public progressiveCall(uri: string, args?: Array<any>, argskw?: Array<any>, options: { receive_progress? } = {}): Observable<any> {
public progressiveCall(uri: string, args?: Array<any>, argskw?: Object, options: { receive_progress? } = {}): Observable<any> {

options.receive_progress = true;
const completed = new Subject();
Expand Down

0 comments on commit bc3278d

Please sign in to comment.