mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Explicitely define server load and action types
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<script lang="ts">
|
||||
import "../app.css";
|
||||
import { page } from "$app/stores";
|
||||
const { data, children } = $props();
|
||||
import type { LayoutServerData } from "./$types";
|
||||
import type { Snippet } from "svelte";
|
||||
|
||||
const { data, children } = $props<{ data: LayoutServerData; children: Snippet }>();
|
||||
|
||||
const isProjectRoute = $derived($page.url.pathname.startsWith("/website"));
|
||||
const routeName = $derived(
|
||||
|
||||
Reference in New Issue
Block a user