<slot> can only receive attributes and (optionally) let directives
`<slot>` can only receive attributes and (optionally) let directives
## invalid_slot_attribute
## invalid_slot_attribute
slot attribute must be a static value
slot attribute must be a static value
## invalid_slot_name_default
`default` is a reserved word — it cannot be used as a slot name
## invalid_slot_name
## invalid_slot_name
default is a reserved word — it cannot be used as a slot name`
slot attribute must be a static value
: `slot attribute must be a static value
## invalid_slot_placement
## invalid_slot_placement
@ -25,4 +28,4 @@ Found default slot content alongside an explicit slot="default"
## conflicting_children_snippet
## conflicting_children_snippet
Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block
Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block
`Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses`
};
/** @satisfies {Errors} */
constslots={
'invalid-slot-element-attribute':()=>
`<slot> can only receive attributes and (optionally) let directives`,
'invalid-slot-attribute':()=>`slot attribute must be a static value`,
/** @param {boolean} is_default */
'invalid-slot-name':(is_default)=>
is_default
?`default is a reserved word — it cannot be used as a slot name`
:`slot attribute must be a static value`,
'invalid-slot-placement':()=>
`Element with a slot='...' attribute must be a child of a component or a descendant of a custom element`,
/** @param {string} name @param {string} component */
'duplicate-slot-name':(name,component)=>`Duplicate slot name '${name}' in <${component}>`,
'invalid-default-slot-content':()=>
`Found default slot content alongside an explicit slot="default"`,
'conflicting-children-snippet':()=>
`Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block`
};
/** @satisfies {Errors} */
/** @satisfies {Errors} */
constbindings={
constbindings={
'invalid-binding-expression':()=>`Can only bind to an Identifier or MemberExpression`,
'invalid-binding-expression':()=>`Can only bind to an Identifier or MemberExpression`,