Allow component fields to be declared const
(Think PropTypes in React)
#880
Labels
awaiting submitter
needs a reproduction, or clarification
Recently, I've implemented a component that has a field that needs to be declared
const
. Ideally, this field would be set on create and all changes to it would be thrown away. @TehShrike expressed in Gitter the desire for functionality like PropTypes/duck-type checking. At the suggestion, I thought of 'PropAttrs', that would allow a user to declare the field's desired properties and Svelte would perform checks on create/update. Thoughts?The text was updated successfully, but these errors were encountered: