@ethora/chat-component
Version:
1. npm create vite@latest 2. select name of project, select type (react/js) 3. cd project-name 4. npm i 5. npm i @ethora/chat-component 6. go to file src/App.tsx and replace it with this code
18 lines (17 loc) • 495 B
TypeScript
interface ActionLogEntry {
timestamp: number;
action: any;
state: any;
stackTrace: string;
}
declare class ActionLogger {
private logs;
private maxLogs;
logAction(action: any, state: any): void;
getLogs(): ActionLogEntry[];
clearLogs(): void;
getRecentLogs(count?: number): ActionLogEntry[];
}
export declare const actionLogger: ActionLogger;
export declare const actionLoggerMiddleware: (storeAPI: any) => (next: any) => (action: any) => any;
export {};