Current section
Files
Jump to
Current section
Files
src/glitch@extended@json_ext.erl
-module(glitch@extended@json_ext).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([option/2, uri/1]).
-spec option(gleam@option:option(SEA), fun((SEA) -> gleam@json:json())) -> gleam@json:json().
option(Opt, Encoder) ->
gleam@json:nullable(Opt, Encoder).
-spec uri(gleam@uri:uri()) -> gleam@json:json().
uri(Uri) ->
_pipe = Uri,
_pipe@1 = gleam@uri:to_string(_pipe),
gleam@json:string(_pipe@1).