Current section

Files

Jump to
tallgrass src tallgrass@common@version.erl
Raw

src/tallgrass@common@version.erl

-module(tallgrass@common@version).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([version_game_index/0]).
-export_type([version_game_index/0]).
-type version_game_index() :: {version_game_index,
integer(),
tallgrass@common@resource:resource()}.
-file("/Users/stevetoro/Code/tallgrass/src/tallgrass/common/version.gleam", 9).
-spec version_game_index() -> decode:decoder(version_game_index()).
version_game_index() ->
_pipe = decode:into(
(decode:parameter(
fun(Index) ->
decode:parameter(
fun(Version) -> {version_game_index, Index, Version} end
)
end
))
),
_pipe@1 = decode:field(
_pipe,
<<"game_index"/utf8>>,
{decoder, fun gleam@dynamic:int/1}
),
decode:field(
_pipe@1,
<<"version"/utf8>>,
tallgrass@common@resource:resource()
).