props-bindable
Simon Holthausen 6 months ago
parent 17b916c8cd
commit cc90ffa0e3

@ -180,8 +180,6 @@ const runes = {
'invalid-props-id': () => `$props() can only be used with an object destructuring pattern`,
'invalid-props-pattern': () =>
`$props() assignment must not contain nested properties or computed keys`,
'duplicate-prop-name': () =>
`Cannot use the same prop name more than once across $props() and $props.bindable()`,
'invalid-props-rest-element': () => `Cannot use ...rest parameter with $props.bindable()`,
'invalid-props-location': () =>
`$props() can only be used at the top level of components as a variable declaration initializer`,

@ -1,9 +0,0 @@
import { test } from '../../test';
export default test({
error: {
code: 'duplicate-prop-name',
message: 'Cannot use the same prop name more than once across $props() and $props.bindable()',
position: [44, 50]
}
});

@ -1,4 +0,0 @@
<script>
let { foo: a } = $props();
let { foo: b } = $props.bindable();
</script>
Loading…
Cancel
Save