fix: 🐛 Fix all TypeScript issues

This commit is contained in:
Jesse Wierzbinski 2024-05-15 17:07:34 -10:00
parent 29aa43f4ce
commit 2b5b82b465
No known key found for this signature in database
7 changed files with 16 additions and 7 deletions

View file

@ -22,7 +22,7 @@ export const getBestContentType = (
};
export const urlToContentFormat = (
url: string,
url?: string,
): typeof EntityValidator.$ContentFormat | null => {
if (!url) return null;
if (url.startsWith("https://api.dicebear.com/")) {

View file

@ -72,7 +72,7 @@ export const redirect = (url: string | URL, status = 302) => {
});
};
export const proxyUrl = (url: string | null) => {
export const proxyUrl = (url: string | null = null) => {
const urlAsBase64Url = Buffer.from(url || "").toString("base64url");
return url
? new URL(