clientnode 4.0.1367 → 4.0.1368
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.
|
@@ -13,7 +13,7 @@ export declare const selectArrayItem: (data: Array<unknown>, keyOrIndex: number
|
|
|
13
13
|
* @param delimiter - Delimiter to delimit given selector components.
|
|
14
14
|
* @returns Determined sub structure of given data or "undefined".
|
|
15
15
|
*/
|
|
16
|
-
export declare const evaluateSelectorUntilLastObject: <ScopeType extends BasicScopeType>(selector: Selector<ScopeType>, scope?: ScopeType, skipMissingLevel?: boolean, delimiter?: string) => [ScopeType, RecursiveKeyOf
|
|
16
|
+
export declare const evaluateSelectorUntilLastObject: <ScopeType extends BasicScopeType>(selector: Selector<ScopeType>, scope?: ScopeType, skipMissingLevel?: boolean, delimiter?: string) => [ScopeType, RecursiveKeyOf];
|
|
17
17
|
/**
|
|
18
18
|
* Retrieves substructure in given object referenced by given selector
|
|
19
19
|
* path.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Mapping } from '../';
|
|
2
2
|
export type BasicScopeType = Array<unknown> | Mapping<unknown> | unknown;
|
|
3
|
-
export type KeyPathOf
|
|
4
|
-
export type SimpleRecursiveKeyOf
|
|
5
|
-
export type RecursiveKeyOf
|
|
6
|
-
export type SelectorItem<Type extends BasicScopeType> =
|
|
3
|
+
export type KeyPathOf = string;
|
|
4
|
+
export type SimpleRecursiveKeyOf = number | string;
|
|
5
|
+
export type RecursiveKeyOf = ((scope: unknown) => unknown) | SimpleRecursiveKeyOf;
|
|
6
|
+
export type SelectorItem<Type extends BasicScopeType> = RecursiveKeyOf | Expression<RecursiveKeyOf | number, Type>;
|
|
7
7
|
export type NormalizedSelector<Type extends BasicScopeType> = Array<SelectorItem<Type>>;
|
|
8
8
|
export type Selector<Type extends BasicScopeType> = SelectorItem<Type> | NormalizedSelector<Type>;
|
|
9
9
|
export type Comparator = '==' | '!=' | '<' | '>' | '<=' | '>=';
|