json-joy
    Preparing search index...

    Interface OperationAdd<T>

    JSON Patch add (or replace) operation.

    Below example sets "foo" key of an object to "bar" value:

    const operation: OperationAdd = {
    op: 'add',
    path: '/foo',
    value: 'bar',
    };
    interface OperationAdd<T = unknown> {
        op: "add";
        path: string | Path;
        value: T;
    }

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    op: "add"
    path: string | Path
    value: T