Handle when choose is not an array (#9028)

This commit is contained in:
Bram Kragten
2021-04-29 17:53:58 +02:00
committed by GitHub
parent 0562242043
commit 2e51da32f0
3 changed files with 43 additions and 32 deletions

View File

@@ -112,7 +112,7 @@ export interface ChooseActionChoice {
export interface ChooseAction {
alias?: string;
choose: ChooseActionChoice[] | null;
choose: ChooseActionChoice | ChooseActionChoice[] | null;
default?: Action | Action[];
}