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 af2251f commit 2053875Copy full SHA for 2053875
src/utils/normalizeUrl.ts
@@ -1,4 +1,4 @@
1
-import type { URL } from "@imgproxy/imgproxy-js-core";
+import type { URLImageInfo } from "@imgproxy/imgproxy-js-core";
2
import type { IRawUrl } from "../types";
3
import bufferToBase64 from "./bufferToBase64.js";
4
import getEncryptPair from "./getEncryptPair.js";
@@ -10,7 +10,11 @@ interface INormalizeUrl {
10
encryptIV?: string;
11
}
12
13
-const normalizeUrl = ({ url, encryptKey, encryptIV }: INormalizeUrl): URL => {
+const normalizeUrl = ({
14
+ url,
15
+ encryptKey,
16
+ encryptIV,
17
+}: INormalizeUrl): URLImageInfo => {
18
const changedUrl = {
19
value: typeof url === "string" ? url : url.value,
20
type: (typeof url === "string" ? "base64" : url.displayAs) || "base64",
0 commit comments