@rxx/core
Version:
React MVI micro framework.
8 lines (7 loc) • 336 B
TypeScript
import { Intent } from './intent';
import { SubjectTree } from '../subject';
export interface IntentHandler {
(key: string, args?: any): void;
callback<Args = any>(key: string, args?: Args, fix?: boolean): (e?: Args) => void;
}
export declare function generateIntentHandler(intent: Intent, subject: SubjectTree): IntentHandler;