phase-6: typescript introduction
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { page, navigating } from '$app/stores';
|
||||
import '../styles/app.scss';
|
||||
import Spinner from '$lib/Spinner.svelte';
|
||||
let { children } = $props();
|
||||
import type { Snippet } from 'svelte';
|
||||
let { children }: { children: Snippet } = $props();
|
||||
|
||||
// Resolve active path optimistically — use the destination during navigation
|
||||
// so the nav link highlights immediately on click, not after load completes.
|
||||
|
||||
Reference in New Issue
Block a user