xaco-store
Version:
A lightweight state management library for Angular using Signals
6 lines (5 loc) • 318 B
TypeScript
export declare const CURRENT_STATE_TEXT = "Current state:";
export declare const NEXT_STATE_TEXT = "Next state:";
export declare const ACTION_TEXT = "Action:";
export declare const PAYLOAD_TEXT = "Payload:";
export declare function logMiddleware<T>(currentState: T, nextState: T, action: string, payload?: any): void;