Created
April 6, 2023 13:07
-
-
Save notpushkin/902acfa948bf0db41fd540740ed57051 to your computer and use it in GitHub Desktop.
svelte-compat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://kit.svelte.dev/docs/modules#$app-stores | |
import { page as _page } from "@roxi/routify"; | |
import { derived } from "svelte/store"; | |
/** | |
* Returns a subset of https://kit.svelte.dev/docs/types#public-types-page. | |
*/ | |
export const page = derived(_page, (_pageVal) => { | |
return { | |
url: _pageVal.path, | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment