createArrayChangeProxy
function createArrayChangeProxy<T>(targets): object;Defined in: packages/db/src/proxy.ts:840
Creates proxies for an array of objects and tracks changes to each
Type Parameters
T
T extends object
Parameters
targets
T[]
Array of objects to proxy
Returns
object
An object containing the array of proxies and a function to get all changes
getChanges()
getChanges: () => Record<string | symbol, unknown>[];Returns
Record<string | symbol, unknown>[]
proxies
proxies: T[];