Added toJSON method to Connection class (#849)

* Added toJSON method to Connection class

* Updated test

* Updated typings
This commit is contained in:
Tomas Della Vedova
2019-05-14 12:00:27 -04:00
committed by delvedor
parent 3e9ae8b29c
commit 96a103b305
3 changed files with 27 additions and 0 deletions

1
lib/Connection.d.ts vendored
View File

@ -78,6 +78,7 @@ export default class Connection {
buildRequestObject(params: any): http.ClientRequestArgs;
// @ts-ignore
[inspect.custom](object: any, options: InspectOptions): string;
toJSON(): any;
}
export {};