diff options
Diffstat (limited to 'sdnr/wt/odlux/framework/src/flux/action.ts')
-rw-r--r-- | sdnr/wt/odlux/framework/src/flux/action.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sdnr/wt/odlux/framework/src/flux/action.ts b/sdnr/wt/odlux/framework/src/flux/action.ts new file mode 100644 index 000000000..8a90f24b2 --- /dev/null +++ b/sdnr/wt/odlux/framework/src/flux/action.ts @@ -0,0 +1,8 @@ +/** + * Represents an action in the odlux flux architecture. + */ +export abstract class Action { } + +export interface IActionHandler<TState, TAction extends Action = Action> { + (state: TState | undefined, action: TAction): TState; +}
\ No newline at end of file |