Skip to content

Commit 549e84a

Browse files
committed
fix: svg_string_to_png_buffer typespec
1 parent 95d8d0f commit 549e84a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/resvg.ex

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ defmodule Resvg do
5050

5151
alias Resvg.Options
5252

53+
@type png_buffer :: [0..255]
54+
5355
@doc """
5456
Try to convert the contents of `in_svg` to `out_png`.
5557
@@ -130,7 +132,7 @@ defmodule Resvg do
130132
@spec svg_string_to_png_buffer(
131133
svg_string :: String.t(),
132134
options :: Options.resvg_options()
133-
) :: {:ok, binary()} | {:error, String.t()}
135+
) :: {:ok, png_buffer} | {:error, String.t()}
134136
def svg_string_to_png_buffer(svg_string, opts) do
135137
options = struct(Options, opts)
136138
Resvg.Native.svg_string_to_png_buffer(svg_string, options)

0 commit comments

Comments
 (0)