Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Jan 17, 2025
1 parent 5337f43 commit ee8602e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions lib/phoenix_live_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,12 @@ defmodule Phoenix.LiveView do
prepend items (with `at: 0`) to the stream, the non-stream item will be pushed down.
"""
@spec stream(socket :: Socket.t(), name :: atom | String.t(), items :: Enumerable.t(), opts :: Keyword.t()) ::
@spec stream(
socket :: Socket.t(),
name :: atom | String.t(),
items :: Enumerable.t(),
opts :: Keyword.t()
) ::
Socket.t()
def stream(%Socket{} = socket, name, items, opts \\ []) do
socket
Expand Down Expand Up @@ -1792,7 +1797,8 @@ defmodule Phoenix.LiveView do
Returns an updated `socket`.
"""
@spec stream_configure(socket :: Socket.t(), name :: atom | String.t(), opts :: Keyword.t()) :: Socket.t()
@spec stream_configure(socket :: Socket.t(), name :: atom | String.t(), opts :: Keyword.t()) ::
Socket.t()
def stream_configure(%Socket{} = socket, name, opts) when is_list(opts) do
new_socket = ensure_streams(socket)

Expand Down Expand Up @@ -1875,7 +1881,12 @@ defmodule Phoenix.LiveView do
See `stream_delete/3` for more information on deleting items.
"""
@spec stream_insert(socket :: Socket.t(), name :: atom | String.t(), item :: any, opts :: Keyword.t()) ::
@spec stream_insert(
socket :: Socket.t(),
name :: atom | String.t(),
item :: any,
opts :: Keyword.t()
) ::
Socket.t()
def stream_insert(%Socket{} = socket, name, item, opts \\ []) do
at = Keyword.get(opts, :at, -1)
Expand Down

0 comments on commit ee8602e

Please sign in to comment.