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: tasks:
release:gitea: release:gitea:
cmds: 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: vars:
VERSION: { sh: 'npm version --json | jq -r .updux' } VERSION: { sh: 'npm version --json | jq -r .updux' }
prerelease: prerelease:

View File

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