From 1566a2511c47e242d1a3bc23a4978569f3739507 Mon Sep 17 00:00:00 2001 From: Adam Woods Date: Fri, 1 Nov 2024 11:28:48 +1100 Subject: [PATCH] fix: correct the return type for json_decode! --- lib/protox.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protox.ex b/lib/protox.ex index 518ffa09..fc7c8f4c 100644 --- a/lib/protox.ex +++ b/lib/protox.ex @@ -182,7 +182,7 @@ defmodule Protox do Throwing version of `json_decode/2`. """ @doc since: "1.6.0" - @spec json_decode!(iodata(), atom(), keyword()) :: iodata() | no_return() + @spec json_decode!(iodata(), atom(), keyword()) :: struct() | no_return() def json_decode!(input, message_module, opts \\ []) do message_module.json_decode!(input, opts) end