ParamBinding:
    | { kind: "const"; value: unknown }
    | {
        default?: unknown;
        from: "input" | "document" | "row";
        kind: "path";
        path: string | string[];
        required?: boolean;
        take?: "first" | "all";
    }
    | {
        kind: "template";
        params: Record<string, ParamBinding>;
        template: string;
    }

Type declaration

  • { kind: "const"; value: unknown }
  • {
        default?: unknown;
        from: "input" | "document" | "row";
        kind: "path";
        path: string | string[];
        required?: boolean;
        take?: "first" | "all";
    }
    • Optionaldefault?: unknown
    • from: "input" | "document" | "row"
    • kind: "path"
    • path: string | string[]

      $… = JSONPath, otherwise lodash path — identical to mapByConfig's source.path

    • Optionalrequired?: boolean
    • Optionaltake?: "first" | "all"
  • { kind: "template"; params: Record<string, ParamBinding>; template: string }