Skip to content

Commit 2053875

Browse files
committed
fix types
1 parent af2251f commit 2053875

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/utils/normalizeUrl.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { URL } from "@imgproxy/imgproxy-js-core";
1+
import type { URLImageInfo } from "@imgproxy/imgproxy-js-core";
22
import type { IRawUrl } from "../types";
33
import bufferToBase64 from "./bufferToBase64.js";
44
import getEncryptPair from "./getEncryptPair.js";
@@ -10,7 +10,11 @@ interface INormalizeUrl {
1010
encryptIV?: string;
1111
}
1212

13-
const normalizeUrl = ({ url, encryptKey, encryptIV }: INormalizeUrl): URL => {
13+
const normalizeUrl = ({
14+
url,
15+
encryptKey,
16+
encryptIV,
17+
}: INormalizeUrl): URLImageInfo => {
1418
const changedUrl = {
1519
value: typeof url === "string" ? url : url.value,
1620
type: (typeof url === "string" ? "base64" : url.displayAs) || "base64",

0 commit comments

Comments
 (0)