From 582f56b03396d439ed32aec5883621ee46e9424b Mon Sep 17 00:00:00 2001 From: Lautaro Suarez <67484166+lausuarez02@users.noreply.github.com> Date: Sat, 1 Jul 2023 19:30:13 +0200 Subject: [PATCH] chore: add function return type (#1370) --- src/runtime/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/utils.ts b/src/runtime/utils.ts index ff89bef9..38ae909b 100644 --- a/src/runtime/utils.ts +++ b/src/runtime/utils.ts @@ -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");