@squidcloud/client 1.0.223 → 1.0.225
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.
|
@@ -11,4 +11,14 @@ export declare class MutationContext<T = any> {
|
|
|
11
11
|
get after(): T | undefined;
|
|
12
12
|
/** Returns true if the mutation affects the provided path. */
|
|
13
13
|
affectsPath(path: Paths<T>): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Find all affected paths starting from a root path.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* doc before - { a: { b: 1, c: 2 }, d: 3 }
|
|
19
|
+
* doc after - { a: { b: 1, c: 3 }, d: 4 }
|
|
20
|
+
* doc.affectedPaths('a') // ['a.c']
|
|
21
|
+
*/
|
|
22
|
+
affectedPaths(startingRoot?: string): Array<string>;
|
|
23
|
+
private checkPath;
|
|
14
24
|
}
|