Comments (3)
The Type annotations can only be used in TypeScript files. (js)
issue has the same reason with sveltejs/language-tools#2155 where the HTML parsing doesn't parse the option correctly so the lang="ts"
doesn't get extracted. If you move svelte:options to be after the script tag it should work.
As for the type of the customElement
, this needs adjustment with the type definition here therefore transferring. The HTMLProp
type seems to override the customElment
definition in the "svelte/elements". Probably can just remove the override since you can't add an option to the svelte:options
so we don't need to support type enhancement for it.
from svelte.
Not really. The whole customElement
option is not typed because it got overridden.
from svelte.
just to clarify, i think you meant customElementConstructor
instead of customElement
in "As for the type of the customElement
"
from svelte.
Related Issues (20)
- Feature: Add bind:unchecked to input boxes of type "checkbox" HOT 7
- Svelte 5: Misleading/missing errors on non-existent sub-runes
- Svelte 5: Slot not render content for customElements HOT 11
- Svelte 4/5: Children/slot rerenders DOM when moved HOT 4
- Svelte 5: `{null}` is rendered in an edge case
- Svelte 5: $state declared with var in *.svelte.js broken HOT 2
- Svelte 5: `$bindable()` type is unknown HOT 3
- Properties are not reactive when using `mount`and `$state` props. HOT 6
- Runes mode: cannot send data from child to parent HOT 2
- [runes] Add the ability to get a list of dependencies
- Disallow prop interpolation + other stuff without quotes? HOT 5
- don't appear the result HOT 3
- Hydration regression between 224 and 225 HOT 6
- Support Composability on Runes HOT 13
- Svelte 5: binding to universal reactivity objects HOT 3
- Custom root folder destroys hmr css update (svelte + vite + ubuntu) HOT 2
- Error on invalid tag names
- webcomponents regression after 221 HOT 1
- Svelte 5: `$state.link` various bugs HOT 5
- Shadowed variable breaks `{#await}` block HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte.