pull/12207/head
Simon Holthausen 2 years ago
parent 38d54448e5
commit 72add9b207

@ -276,6 +276,15 @@ export function props_duplicate(node) {
e(node, "props_duplicate", "Cannot use `$props()` more than once");
}
/**
* Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
* @param {null | number | NodeLike} node
* @returns {never}
*/
export function props_illegal_name(node) {
e(node, "props_illegal_name", "Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)");
}
/**
* `$props()` can only be used with an object destructuring pattern
* @param {null | number | NodeLike} node
@ -303,15 +312,6 @@ export function props_invalid_placement(node) {
e(node, "props_invalid_placement", "`$props()` can only be used at the top level of components as a variable declaration initializer");
}
/**
* Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
* @param {null | number | NodeLike} node
* @returns {never}
*/
export function props_illegal_name(node) {
e(node, "props_illegal_name", "Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)");
}
/**
* Cyclical dependency detected: %cycle%
* @param {null | number | NodeLike} node

Loading…
Cancel
Save