From 66a1027be100598ed1ea13067bd2dddb5bf598c8 Mon Sep 17 00:00:00 2001 From: Taylor Yelverton Date: Fri, 25 Oct 2019 15:13:42 -0500 Subject: [PATCH] ActionCable: Subscriptions.create obj is optional. (#39406) - https://guides.rubyonrails.org/action_cable_overview.html#subscriber - https://guides.rubyonrails.org/action_cable_overview.html#client-server-interactions-subscriptions - https://github.com/rails/rails/blob/master/actioncable/app/javascript/action_cable/subscription.js#L59-L67 --- types/actioncable/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/actioncable/index.d.ts b/types/actioncable/index.d.ts index a48c379c26..d0e2216e73 100644 --- a/types/actioncable/index.d.ts +++ b/types/actioncable/index.d.ts @@ -13,7 +13,7 @@ declare module ActionCable { } interface Subscriptions { - create(channel: string|ChannelNameWithParams, obj: CreateMixin): Channel; + create(channel: string|ChannelNameWithParams, obj?: CreateMixin): Channel; } interface Cable {