cleanup: remove routes object

This commit is contained in:
James Xylight committed 2025-02-04 16:20:32 -08:00
1 parent ddaa34dee3
commit b883b5f6e0
9 files changed
+19 -48

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { browser } from '$app/environment'
type AnyFunction = (...args: any[]) => any
export const awaitIfServer = async <T>(
promise: Promise<T>
promise: Promise<T>,
): Promise<{
data: Promise<T> | T
}> => ({ data: browser ? promise : await promise })