@@ -4,8 +4,6 @@ export interface BaseOverlay {
44 position ?: OverlayPosition ;
55
66 timing ?: OverlayTiming ;
7-
8- [ k : string ] : string | OverlayPosition | OverlayTiming | undefined ;
97}
108
119export interface ImageOverlay extends BaseOverlay {
@@ -67,21 +65,6 @@ export interface OverlayPosition {
6765 * expressions such as `bh_mul_0.4` or `bh_sub_ch`. Maps to `ly` in the URL.
6866 */
6967 y ?: number | string ;
70-
71- [ k : string ] :
72- | string
73- | 'center'
74- | 'top'
75- | 'left'
76- | 'bottom'
77- | 'right'
78- | 'top_left'
79- | 'top_right'
80- | 'bottom_left'
81- | 'bottom_right'
82- | number
83- | string
84- | undefined ;
8568}
8669
8770export interface OverlayTiming {
@@ -109,8 +92,6 @@ export interface OverlayTiming {
10992 * Applies only if the base asset is a video. Maps to `lso` in the URL.
11093 */
11194 start ?: number | string ;
112-
113- [ k : string ] : string | number | string | undefined ;
11495}
11596
11697export interface SolidColorOverlay extends BaseOverlay {
@@ -161,8 +142,6 @@ export interface SolidColorOverlayTransformation {
161142 * Width of the solid color overlay
162143 */
163144 width ?: number | string ;
164-
165- [ k : string ] : string | number | true | string | number | string | number | 'max' | undefined ;
166145}
167146
168147/**
@@ -187,7 +166,7 @@ export interface SrcOptions {
187166 * They can be any query parameters and not necessarily related to ImageKit. This
188167 * is especially useful if you want to add a versioning parameter to your URLs.
189168 */
190- queryParameters ?: { [ key : string ] : string | number } ;
169+ queryParameters ?: { [ key : string ] : string } ;
191170
192171 /**
193172 * An array of objects specifying the transformations to be applied in the URL. If
@@ -202,14 +181,6 @@ export interface SrcOptions {
202181 * path of the URL, set this to `path`.
203182 */
204183 transformationPosition ?: TransformationPosition ;
205-
206- [ k : string ] :
207- | string
208- | string
209- | { [ key : string ] : string | number }
210- | Array < Transformation >
211- | TransformationPosition
212- | undefined ;
213184}
214185
215186/**
@@ -275,8 +246,6 @@ export interface SubtitleOverlayTransformation {
275246 * Typography style for subtitles
276247 */
277248 typography ?: 'b' | 'i' | 'b_i' ;
278-
279- [ k : string ] : string | number | string | 'b' | 'i' | 'b_i' | undefined ;
280249}
281250
282251export interface TextOverlay extends BaseOverlay {
@@ -381,25 +350,6 @@ export interface TextOverlayTransformation {
381350 * supported. Useful when used in conjunction with the `background`.
382351 */
383352 width ?: number | string ;
384-
385- [ k : string ] :
386- | string
387- | number
388- | 'h'
389- | 'v'
390- | 'h_v'
391- | 'v_h'
392- | number
393- | string
394- | 'left'
395- | 'right'
396- | 'center'
397- | number
398- | 'max'
399- | 'b'
400- | 'i'
401- | 'b_i'
402- | undefined ;
403353}
404354
405355/**
@@ -731,53 +681,6 @@ export interface Transformation {
731681 * cropped area. It should be used in conjunction with fo-face or fo-<object_name>.
732682 */
733683 zoom ?: number ;
734-
735- [ k : string ] :
736- | string
737- | true
738- | string
739- | true
740- | number
741- | string
742- | 'aac'
743- | 'opus'
744- | 'none'
745- | number
746- | boolean
747- | 'force'
748- | 'at_max'
749- | 'at_max_enlarge'
750- | 'at_least'
751- | 'maintain_ratio'
752- | 'pad_resize'
753- | 'extract'
754- | 'pad_extract'
755- | 'h'
756- | 'v'
757- | 'h_v'
758- | 'v_h'
759- | 'auto'
760- | 'webp'
761- | 'jpg'
762- | 'jpeg'
763- | 'png'
764- | 'gif'
765- | 'svg'
766- | 'mp4'
767- | 'webm'
768- | 'avif'
769- | 'orig'
770- | Overlay
771- | number
772- | 'max'
773- | true
774- | number
775- | Array < StreamingResolution >
776- | 'h264'
777- | 'vp9'
778- | 'av1'
779- | 'none'
780- | undefined ;
781684}
782685
783686/**
0 commit comments