Skip to content

Commit

Permalink
fix: data from $props does not need type
Browse files Browse the repository at this point in the history
  • Loading branch information
YpsilonTM committed Nov 10, 2024
1 parent 0698bc7 commit effffcf
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ const defaultScriptTemplate = `

const tsSv5ScriptTemplate = `
<script lang="ts">
import type { PageData } from './$types';
let { data }: PageData = $props();
let { data } = $props();
</script>
`;

const tsScriptTemplate = `
<script lang="ts">
import type { PageData } from './$types';
export let data: PageData;
</script>
`;
Expand Down

0 comments on commit effffcf

Please sign in to comment.