Skip to content

Commit fde8494

Browse files
authored
fix: add ConditionsOrGetConditions type and update ConditionConfig (#627)
1 parent 8b9879c commit fde8494

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Model/Types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,11 @@ export type BackPayload = {
175175
count: number,
176176
}
177177

178+
export type ConditionsOrGetConditions = ((getContext: () => ConditionContext) => Condition[]) | Condition[]
179+
178180
export type ConditionConfig = {
179-
conditions?: ((getContext: () => ConditionContext) => Condition[]) | Condition[],
180-
statusConditions?: (() => Condition[]) | Condition[],
181+
conditions?: ConditionsOrGetConditions,
182+
statusConditions?: ConditionsOrGetConditions,
181183
}
182184

183185
export type Navigation<

0 commit comments

Comments
 (0)