We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b812ff commit cabe0c8Copy full SHA for cabe0c8
index.ts
@@ -669,4 +669,4 @@ class ImageKit {
669
}
670
671
672
-export default ImageKit;
+export = ImageKit;
libs/interfaces/Transformation.ts
@@ -1,5 +1,10 @@
1
+import supportedTransforms from "../constants/supportedTransforms";
2
+
3
export type TransformationPosition = "path" | "query";
4
-export interface Transformation {
- [key: string]: string | number | boolean
5
-}
+export type Transformation = Partial<
6
+ | {
7
+ [key in keyof typeof supportedTransforms]: string | boolean | number;
8
+ }
9
+ | { [key: string]: string | string | boolean | number }
10
+>;
0 commit comments