Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 747 Bytes

File metadata and controls

50 lines (30 loc) · 747 Bytes
id createArrayChangeProxy
title createArrayChangeProxy

Function: createArrayChangeProxy()

function createArrayChangeProxy<T>(targets): object;

Defined in: packages/db/src/proxy.ts:1130

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[];