Skip to content

'children' is of type 'unknown'.js(18046) #11379

Discussion options

You must be logged in to vote
<script lang="ts">
  import type { Snippet } from 'svelte'

  let { children }: { children: Snippet } = $props()
</script>

<button>{@render children()}</button>

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@YoonHan
Comment options

Comment options

You must be logged in to vote
2 replies
@ayazemre
Comment options

@iDefyU
Comment options

Comment options

You must be logged in to vote
1 reply
@oghaAI
Comment options

Answer selected by dummdidumm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
8 participants