source: frontend/node_modules/immer/dist/core/proxy.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.2 KB
Line 
1import { ImmerBaseState, ImmerState, Drafted, AnyObject, AnyArray, Objectish, ProxyType } from "../internal";
2interface ProxyBaseState extends ImmerBaseState {
3 assigned_: {
4 [property: string]: boolean;
5 };
6 parent_?: ImmerState;
7 revoke_(): void;
8}
9export interface ProxyObjectState extends ProxyBaseState {
10 type_: ProxyType.ProxyObject;
11 base_: any;
12 copy_: any;
13 draft_: Drafted<AnyObject, ProxyObjectState>;
14}
15export interface ProxyArrayState extends ProxyBaseState {
16 type_: ProxyType.ProxyArray;
17 base_: AnyArray;
18 copy_: AnyArray | null;
19 draft_: Drafted<AnyArray, ProxyArrayState>;
20}
21declare type ProxyState = ProxyObjectState | ProxyArrayState;
22/**
23 * Returns a new draft of the `base` object.
24 *
25 * The second argument is the parent draft-state (used internally).
26 */
27export declare function createProxyProxy<T extends Objectish>(base: T, parent?: ImmerState): Drafted<T, ProxyState>;
28/**
29 * Object drafts
30 */
31export declare const objectTraps: ProxyHandler<ProxyState>;
32export declare function markChanged(state: ImmerState): void;
33export declare function prepareCopy(state: {
34 base_: any;
35 copy_: any;
36}): void;
37export {};
38//# sourceMappingURL=proxy.d.ts.map
Note: See TracBrowser for help on using the repository browser.