cleanup: remove routes object
This commit is contained in:
1 parent
ddaa34dee3
commit
b883b5f6e0
9 files changed
+19
-48
No files matched your search
+1
-1
@@ -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 })
|
||||
Reference in new issue
Block a user