Closed
Description
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?