[actioncable] use any instead of Object

This commit is contained in:
Jared Szechy
2018-09-27 12:34:15 -04:00
parent f80774245f
commit dc3a85a6ec
+3 -3
View File
@@ -9,7 +9,7 @@ declare module ActionCable {
interface Channel {
unsubscribe(): void;
perform(action: string, data: {}): void;
send(data: Object): boolean;
send(data: any): boolean;
}
interface Subscriptions {
@@ -18,7 +18,7 @@ declare module ActionCable {
interface Cable {
subscriptions: Subscriptions;
send(data: Object): void;
send(data: any): void;
connect(): void;
disconnect(): void;
ensureActiveConnection(): void;
@@ -27,7 +27,7 @@ declare module ActionCable {
interface CreateMixin {
connected(): void;
disconnected(): void;
received(obj: Object): void;
received(obj: any): void;
[key: string]: Function;
}