Type Alias PatchRequest

PatchRequest: {
    op: "add" | "replace" | "remove";
    path: string;
    value?: string | boolean | number | unknown[];
}[]

Type declaration

  • op: "add" | "replace" | "remove"

    Operation type

  • path: string

    Path to the target field to be patched

  • Optionalvalue?: string | boolean | number | unknown[]

    Value used for the patch. Required only for add or replace operations. The value type should match the type of the target field.