We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 158c3ae commit aea2879Copy full SHA for aea2879
demo/src/routes/+layout.ts
@@ -1,7 +1,7 @@
1
-import { type PageLoad } from "./$types";
+import type { LayoutServerLoad } from "./$types";
2
export const prerender = true;
3
4
-export const load: PageLoad = async ({ fetch }) => {
+export const load: LayoutServerLoad = async ({ fetch }) => {
5
const res = await fetch(
6
"https://static.datenhub.net/data/boundaries/manifest.csv",
7
);
@@ -19,7 +19,7 @@ export const load: PageLoad = async ({ fetch }) => {
19
const m = f.match(/(?:.+_)(\d+-\d+-\d+)(?:.+)/);
20
return m ? m[1] : null;
21
})
22
- .filter((f: string | null) => f !== null),
+ .filter((f: string | null): f is string => f !== null),
23
),
24
).sort((a, b) => b.localeCompare(a));
25
}
0 commit comments