Skip to content

Commit

Permalink
Add :eager key to Cloudex.UploadedImage struct
Browse files Browse the repository at this point in the history
- Use generic string type keys for eager_transformations type
  • Loading branch information
ClementineOldfield committed Aug 20, 2020
1 parent 187edf2 commit 91249fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/cloudex/uploaded_image.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ defmodule Cloudex.UploadedImage do
* width
* hieght
* format
* eager
* resource_type
* created_at
* tags
Expand All @@ -24,6 +25,7 @@ defmodule Cloudex.UploadedImage do
@type t :: %__MODULE__{
bytes: non_neg_integer | nil,
created_at: String.t() | nil,
eager: eager_transformations() | nil,
etag: String.t() | nil,
format: String.t() | nil,
height: non_neg_integer | nil,
Expand All @@ -43,9 +45,14 @@ defmodule Cloudex.UploadedImage do
context: struct | nil
}

@type eager_transformations :: list(%{
String.t() => String.t()
})

defstruct bytes: nil,
created_at: nil,
etag: nil,
eager: nil,
format: nil,
height: nil,
moderation: nil,
Expand Down

0 comments on commit 91249fd

Please sign in to comment.