actions can be nulls

This commit is contained in:
Yanick Champoux 2024-08-13 12:46:11 -04:00
parent e19b1755d1
commit 25fa029899
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ vars:
tasks:
release:gitea:
cmds:
- tea releases create -asset releases/updux-v{{.VERSION}}.tgz -p --title v{{.VERSION}} --tag v{{.VERSION}}
- tea releases create -asset releases/updux-{{.VERSION}}.tgz -p --title v{{.VERSION}} --tag v{{.VERSION}}
vars:
VERSION: { sh: 'npm version --json | jq -r .updux' }
prerelease:

View File

@ -11,7 +11,7 @@ import Updux from './Updux.js';
export type DuxConfig = Partial<{
initialState: any;
subduxes: Record<string, DuxConfig>;
actions: Record<string, ActionCreator<string> | Function>;
actions: Record<string, ActionCreator<string> | Function | null>;
selectors: Record<string, Function>;
effects: EffectMiddleware<any>[];
reactions: DuxReaction<any>[];