Skip to content

StandardNestedFetcher

Defined in: nested.ts:97, nested.ts:161

A fetcher that returns all nested entries

Key features:

  • Tracks nested objects in properties, arrays, sets, and maps
  • Provides access to nested objects by key path
  • Supports iteration over all nested objects
  • Maintains parent-child relationships

Symbol keys are not supported

T extends object

Entry<T> = object

Defined in: nested.ts:168

Entry representing a nested object

Used when iterating over nested objects to provide context about their location

T extends object

readonly data: T

Defined in: nested.ts:174

Data

readonly key: KeyPath

Defined in: nested.ts:170

Name of the field containing the nested object

readonly keyPath: KeyPath

Defined in: nested.ts:172

Full path to the nested object

new StandardNestedFetcher<T>(target, transform): StandardNestedFetcher<T>

Defined in: nested.ts:106

object

The target object

(entry: StandardNestedFetcher.Entry<any>) => T | null

A function that transforms the entry to the desired type.
If the function returns null, the entry is ignored.

StandardNestedFetcher<T>

get dataMap(): ReadonlyMap<KeyPath, T>

Defined in: nested.ts:152

Map of key paths to data

ReadonlyMap<KeyPath, T>

@computed


[iterator](): Generator<StandardNestedFetcher.Entry<T>, void, unknown>

Defined in: nested.ts:133

Iterate over all entries

Generator<StandardNestedFetcher.Entry<T>, void, unknown>

Iterable.[iterator]


getForKey(keyPath): Generator<StandardNestedFetcher.Entry<T>, void, unknown>

Defined in: nested.ts:142

Iterate over all entries for the given key path

KeyPath

Generator<StandardNestedFetcher.Entry<T>, void, unknown>