- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
18 lines
746 B
TypeScript
18 lines
746 B
TypeScript
import { Patch, PatchListener, Immer } from "../internal";
|
|
/** Each scope represents a `produce` call. */
|
|
export interface ImmerScope {
|
|
patches_?: Patch[];
|
|
inversePatches_?: Patch[];
|
|
canAutoFreeze_: boolean;
|
|
drafts_: any[];
|
|
parent_?: ImmerScope;
|
|
patchListener_?: PatchListener;
|
|
immer_: Immer;
|
|
unfinalizedDrafts_: number;
|
|
}
|
|
export declare function getCurrentScope(): ImmerScope;
|
|
export declare function usePatchesInScope(scope: ImmerScope, patchListener?: PatchListener): void;
|
|
export declare function revokeScope(scope: ImmerScope): void;
|
|
export declare function leaveScope(scope: ImmerScope): void;
|
|
export declare function enterScope(immer: Immer): ImmerScope;
|
|
//# sourceMappingURL=scope.d.ts.map
|