Skip to content

Latest commit

 

History

History
62 lines (36 loc) · 869 Bytes

File metadata and controls

62 lines (36 loc) · 869 Bytes
id createChangeProxy
title createChangeProxy

Function: createChangeProxy()

function createChangeProxy<T>(target, parent?): object;

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

Creates a proxy that tracks changes to the target object

Type Parameters

T

T extends Record<string | symbol, any>

Parameters

target

T

The object to proxy

parent?

Optional parent information

prop

string | symbol

tracker

ChangeTracker<Record<string | symbol, unknown>>

Returns

object

An object containing the proxy and a function to get the changes

getChanges()

getChanges: () => Record<string | symbol, any>;

Returns

Record<string | symbol, any>

proxy

proxy: T;