ObjectPatch<T>: {
    set: {
        [key: string]: T;
    };
} | {
    add: {
        [key: string]: T;
    };
    remove: string[];
}

Type Parameters

  • T

Type declaration

  • set: {
        [key: string]: T;
    }

    Set the key-value pairs. All existing key-value pairs will be removed.

    • [key: string]: T

Type declaration

  • add: {
        [key: string]: T;
    }

    Add the key-value pairs. Values for existing keys will be overwritten.

    • [key: string]: T
  • remove: string[]

    Remove the key-value pairs with given keys.