Overview
Index-watch-rule contracts, registry, and default recursive/non-recursive watch rules.
API Reference
Context-aware rule wrapper used to enable recursive branch watching for selected indexes.
import { IndexWatchRule } from '@rs-x/state-manager';import { IndexWatchRule } from '@rs-x/state-manager';
const instance = new IndexWatchRule(...args);2 members in this class.
constructor(
public context: unknown,
private readonly predicate: ( index: unknown, target: unknown, context: unknown) => boolean
)Parameters
public test(
index: unknown,
target: unknown
): booleanParameters
Returns
boolean