@logixjs/core
    Preparing search index...

    Variable RefConst

    Ref: {
        field: (path: string) => FieldRef;
        fromValuePath: (valuePath: string) => FieldRef;
        item: (
            path: string,
            index: number,
            options?: { field?: string; listIndexPath?: readonly number[] },
        ) => FieldRef;
        list: (path: string, listIndexPath?: readonly number[]) => FieldRef;
        root: () => FieldRef;
    } = Internal.Ref

    Type Declaration

    • Readonlyfield: (path: string) => FieldRef
    • ReadonlyfromValuePath: (valuePath: string) => FieldRef

      fromValuePath:

      • Parse a valuePath (e.g. "items.0.warehouseId") into a FieldRef.
      • Supports a single index (required) and multi-level indices via listIndexPath (optional but recommended).

      Conventions:

      • If numeric segments are present, return an item ref (the last index becomes item.index; preceding indices go into listIndexPath).
      • If no numeric segments are present:
        • "items[]" (pattern list root) returns a list ref.
        • Otherwise return a field ref (including pattern fields like "items[].x").
      • "$root" / empty string returns the root ref.
    • Readonlyitem: (
          path: string,
          index: number,
          options?: { field?: string; listIndexPath?: readonly number[] },
      ) => FieldRef
    • Readonlylist: (path: string, listIndexPath?: readonly number[]) => FieldRef
    • Readonlyroot: () => FieldRef