Change message params types to match JSON-RPC spec

Since the interface is supposed to describe message format to match [JSON-RPC spec](http://www.jsonrpc.org/specification),
the params type must be specified as either `Array` or `Object`.

From spec:
> 4.2 Parameter Structures
>
> If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name through an Object.
This commit is contained in:
Igor Matuszewski 2018-01-12 14:56:10 +01:00 committed by GitHub
parent b83effa317
commit b06d2c4c0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ interface RequestMessage extends Message {
/**
* The method's params.
*/
params?: any
params?: Array<T> | object;
}
```
@ -164,7 +164,7 @@ interface NotificationMessage extends Message {
/**
* The notification's params.
*/
params?: any
params?: Array<T> | object;
}
```