Using {} instead of Object in IWebSocket#send

This commit is contained in:
Nick Veys
2016-06-24 14:56:49 -05:00
parent e4c947b56a
commit e1f0a41047
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -21,5 +21,5 @@ socket.onMessage((event) => {}, { filter: /Some Filter/ })
socket.close(true);
socket.close();
let promise = socket.send("Some great data here!");
promise.finally(() => {});
socket.send("Some great data here!").finally(() => {});
socket.send({ list: [1, 2, 3, 4] });
+1 -1
View File
@@ -81,6 +81,6 @@ declare namespace angular.websocket {
*
* @param data data to send, if this is an object, it will be stringified before sending
*/
send(data: string | Object): ng.IPromise<any>;
send(data: string | {}): ng.IPromise<any>;
}
}