Skip to content

Commit 83f879d

Browse files
committed
generate types
1 parent e4c301f commit 83f879d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/svelte/src/compiler/warnings.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const codes = [
102102
"perf_avoid_nested_class",
103103
"reactive_declaration_invalid_placement",
104104
"reactive_declaration_module_script_dependency",
105+
"reactive_declaration_non_reactive_property",
105106
"state_referenced_locally",
106107
"store_rune_conflict",
107108
"css_unused_selector",
@@ -640,6 +641,14 @@ export function reactive_declaration_module_script_dependency(node) {
640641
w(node, "reactive_declaration_module_script_dependency", "Reassignments of module-level declarations will not cause reactive statements to update");
641642
}
642643

644+
/**
645+
* Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update
646+
* @param {null | NodeLike} node
647+
*/
648+
export function reactive_declaration_non_reactive_property(node) {
649+
w(node, "reactive_declaration_non_reactive_property", "Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update");
650+
}
651+
643652
/**
644653
* State referenced in its own scope will never update. Did you mean to reference it inside a closure?
645654
* @param {null | NodeLike} node

0 commit comments

Comments
 (0)