jxxcarlson/elm-review-codeinstaller/13.0.0

Install.Subscription

Use this rule to add to the list of subscriptions.

config : String -> List String -> Config

Suppose that you have the following code in your Backend.elm file:

subscriptions =
    Sub.batch [ foo, bar ]

and that you want to add baz to the list. To do this, say

Install.Subscription.config "Backend" [ "baz" ]
    |> Install.subscription

The result is

subscriptions =
    Sub.batch [ foo, bar, baz ]
type alias Config =
Config

Configuration for rule.