add note about svelte/elements to $props docs (#14829)

pull/14921/head
ottomated 8 months ago committed by GitHub
parent f5c285080c
commit 793f6f3b11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -196,4 +196,6 @@ You can, of course, separate the type declaration from the annotation:
</script> </script>
``` ```
> [!NOTE] Interfaces for native DOM elements are provided in the `svelte/elements` module (see [Typing wrapper components](typescript#Typing-wrapper-components))
Adding types is recommended, as it ensures that people using your component can easily discover which props they should provide. Adding types is recommended, as it ensures that people using your component can easily discover which props they should provide.

Loading…
Cancel
Save