Skip to content

Commit e24ee3e

Browse files
authored
Any overrides all other types in this union type (#31608)
1 parent d06f3ae commit e24ee3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/command/types.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export type PromptSpec = {
9494
readonly type: 'input' | 'select' | 'confirm' | 'checkbox';
9595
readonly message: string | ((arg: any) => string);
9696
readonly when?: boolean | ((arg: any) => boolean);
97-
readonly default?: any | ((arg: any) => any);
98-
readonly filter?: any | ((arg: any) => any);
99-
readonly transformer?: any | ((arg: any) => any);
100-
readonly validate?: any | ((arg: any) => any);
97+
readonly default?: any;
98+
readonly filter?: any;
99+
readonly transformer?: any;
100+
readonly validate?: any;
101101
};
102102

103103
type JHipsterArgumentConfig = SetOptional<ArgumentSpec, 'name'> & Partial<ScopedConfig>;

0 commit comments

Comments
 (0)