@wcstack/state 1.21.3 → 1.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -74,6 +74,14 @@ interface IStateElement {
74
74
  */
75
75
  readonly crossRowListPaths?: ReadonlySet<string>;
76
76
  addCrossRowListPath?(path: string): void;
77
+ /**
78
+ * 評価中に $1 等のインデックスを読んだ getter パスの集合(実行時検出)。
79
+ * 位置だけが変わった行(listDiff.changeIndexSet)は index 以外の入力が不変なので、
80
+ * walkDependency の静的子展開をこの集合の subtree に限定できる。
81
+ * optional なのはテスト用モック互換のため(undefined は「検出なし」扱い)。
82
+ */
83
+ readonly indexDependentGetterPaths?: ReadonlySet<string>;
84
+ addIndexDependentGetterPath?(path: string): void;
77
85
  setPathInfo(path: string, bindingType: BindingType): void;
78
86
  addStaticDependency(parentPath: string, childPath: string): boolean;
79
87
  addDynamicDependency(fromPath: string, toPath: string): boolean;