Skip to content

Commit

Permalink
renamed types
Browse files Browse the repository at this point in the history
  • Loading branch information
ANKUR DWIVEDI authored and ANKUR DWIVEDI committed Feb 16, 2024
1 parent 2eb5262 commit 20ba62b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/components/IKUpload/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@ type TransformationObject = {
value: string;
};

type GifToVideoOrThumbnailObject = {
type: "gif-to-video" | "thumbnail";
type GifToVideoObject = {
type: "gif-to-video";
value?: string;
};

type AbsObject = {
type ThumbnailObject = {
type: "thumbnail";
value?: string;
};

type ABSObject = {
type: "abs";
value: string;
protocol: "hls" | "dash";
};

type PostTransformation = TransformationObject | GifToVideoOrThumbnailObject | AbsObject;
type PostTransformation = TransformationObject | GifToVideoObject | ThumbnailObject | ABSObject;

type TransformationType = {
pre?: string;
Expand Down

0 comments on commit 20ba62b

Please sign in to comment.