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