From b459ee44ae99fa14bbe818a622efac9ecbfda470 Mon Sep 17 00:00:00 2001 From: Paul Swartz Date: Fri, 5 Jan 2018 10:34:41 -0500 Subject: [PATCH] add type for strings option --- lib/jason.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jason.ex b/lib/jason.ex index 63c6fae..4c6abb5 100644 --- a/lib/jason.ex +++ b/lib/jason.ex @@ -10,7 +10,9 @@ defmodule Jason do @type keys :: :atoms | :atoms! | :strings | :copy | (String.t() -> term) - @type decode_opt :: {:keys, keys} + @type strings :: :reference | :copy + + @type decode_opt :: {:keys, keys} | {:strings, strings} alias Jason.{Encode, Decoder, DecodeError, EncodeError}