chore: add function return type (#1370)

This commit is contained in:
Lautaro Suarez
2023-07-01 19:30:13 +02:00
committed by GitHub
parent 70e9c556c3
commit 582f56b033
+1 -1
View File
@@ -11,7 +11,7 @@ export const IS_BROWSER = typeof document !== "undefined";
* specific to the current version of the application, and as such can be safely
* served with a very long cache lifetime (1 year).
*/
export function asset(path: string) {
export function asset(path: string): string {
if (!path.startsWith("/") || path.startsWith("//")) return path;
try {
const url = new URL(path, "https://freshassetcache.local");