Tinkex.Files.Types (Tinkex v0.3.4)
View SourceType helpers and guards for file upload inputs.
Summary
Types
@type file_content() :: binary() | Path.t() | File.Stream.t() | iodata()
@type file_tuple() :: {String.t() | nil, file_content()} | {String.t() | nil, file_content(), String.t() | nil} | {String.t() | nil, file_content(), String.t() | nil, headers()}
@type file_types() :: file_content() | file_tuple()
@type request_files() :: %{optional(String.t()) => file_types()} | [{String.t(), file_types()}]