---
title: PatchUpdater
slug: data-platform/connect-platform/app-sdk-api-reference-types-patchupdater
docTags: 
createdAt: 2026-08-05T20:06:38.615Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / PatchUpdater

# Type Alias: PatchUpdater()\<T>

:::BlockQuote
**PatchUpdater**\<`T`> = (`previous`) => `T`
:::

Defined in: [src/store/BaseKVStore.ts:22](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/store/BaseKVStore.ts#L22)

Used when patching data.
The previous value is provided as the first parameter.
The return value will be used to update the record.
WARNING: A patch updater may be called multiple times until the update is successful.

## Type Parameters

### T

`T` = [`` `ValueHash` ``](docId\:iBlCGxR75KaoapohMUe5k)

## Parameters

### previous

`T`

## Returns

`T`
