Skip to content

Commit

Permalink
fix typespec and typedoc for t:PerMessageDeflate.t/0
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Oct 12, 2021
1 parent 6530da2 commit 8eac1b9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/mint/web_socket/per_message_deflate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ defmodule Mint.WebSocket.PerMessageDeflate do
require Mint.WebSocket.Frame, as: Frame
alias Mint.WebSocket.Extension

@doc false
@type t :: %__MODULE__{inflate: :zlib.zstream(), deflate: :zlib.zstream()}
@typedoc false
@type t :: %__MODULE__{
inflate: :zlib.zstream(),
deflate: :zlib.zstream(),
inflate_takeover?: boolean(),
deflate_takeover?: boolean()
}

defstruct [:inflate, :deflate, :inflate_takeover?, :deflate_takeover?]

Expand Down

0 comments on commit 8eac1b9

Please sign in to comment.