@ -98,8 +98,8 @@ export function invalid_attribute_name(node, name) {
*@returns{never}
*/
exportfunctioninvalid_animation(node){
e(node,"invalid_animation","An element that uses the animate directive must be the immediate child of a keyed each block`\n\t\t\t: type === 'each-key'\n\t\t\t\t? `An element that uses the animate directive must be used inside a keyed each block. Did you forget to add a key to your each block?`\n\t\t\t\t: `An element that uses the animate directive must be the sole child of a keyed each block");
exportfunctionanimation_invalid_placement(node){
e(node,"animation_invalid_placement","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block");
}
/**
@ -107,8 +107,8 @@ export function invalid_animation(node) {
*@returns{never}
*/
exportfunctionduplicate_animation(node){
e(node,"duplicate_animation","An element can only have one 'animate' directive");
exportfunction animation_missing_key(node){
e(node,"animation_missing_key","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block?");
}
/**
@ -116,8 +116,26 @@ export function duplicate_animation(node) {
*@returns{never}
*/
exportfunctioninvalid_event_modifier(node){
e(node,"invalid_event_modifier","Valid event modifiers are %modifiers.slice(0, -1).join(', ')% or %modifiers.slice(-1)%`\n\t\t\t: `Event modifiers other than 'once' can only be used on DOM elements");
exportfunctionanimation_duplicate(node){
e(node,"animation_duplicate","An element can only have one 'animate' directive");
}
/**
*@param{number|NodeLike}node
*@param{string}list
*@returns{never}
*/
exportfunctioninvalid_event_modifier(node,list){
e(node,"invalid_event_modifier",`Valid event modifiers are ${list}`);