Skip to content

Commit 0efc78d

Browse files
committed
fix: make encoding property optional in overlay interfaces
1 parent c6b9f80 commit 0efc78d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interfaces/Transformation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export interface TextOverlay extends BaseOverlay {
496496
* Regardless of the encoding method, the input text is always percent-encoded to ensure it is URL-safe.
497497
*/
498498

499-
encoding: "auto" | "plain" | "base64";
499+
encoding?: "auto" | "plain" | "base64";
500500

501501
/**
502502
* Control styling of the text overlay.
@@ -522,7 +522,7 @@ export interface ImageOverlay extends BaseOverlay {
522522
* - Leading and trailing slashes are removed.
523523
* - Remaining slashes within the path are replaced with `@@` when using plain text.
524524
*/
525-
encoding: "auto" | "plain" | "base64";
525+
encoding?: "auto" | "plain" | "base64";
526526

527527
/**
528528
* Array of transformations to be applied to the overlay image. Supported transformations depends on the base/parent asset.
@@ -549,7 +549,7 @@ export interface VideoOverlay extends BaseOverlay {
549549
* - Leading and trailing slashes are removed.
550550
* - Remaining slashes within the path are replaced with `@@` when using plain text.
551551
*/
552-
encoding: "auto" | "plain" | "base64";
552+
encoding?: "auto" | "plain" | "base64";
553553

554554
/**
555555
* Array of transformation to be applied to the overlay video. Except `streamingResolutions`, all other video transformations are supported.
@@ -576,7 +576,7 @@ export interface SubtitleOverlay extends BaseOverlay {
576576
* - Leading and trailing slashes are removed.
577577
* - Remaining slashes within the path are replaced with `@@` when using plain text.
578578
*/
579-
encoding: "auto" | "plain" | "base64";
579+
encoding?: "auto" | "plain" | "base64";
580580

581581
/**
582582
* Control styling of the subtitle.

0 commit comments

Comments
 (0)