We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ConditionsOrGetConditions
ConditionConfig
1 parent 8b9879c commit fde8494Copy full SHA for fde8494
src/Model/Types.ts
@@ -175,9 +175,11 @@ export type BackPayload = {
175
count: number,
176
}
177
178
+export type ConditionsOrGetConditions = ((getContext: () => ConditionContext) => Condition[]) | Condition[]
179
+
180
export type ConditionConfig = {
- conditions?: ((getContext: () => ConditionContext) => Condition[]) | Condition[],
- statusConditions?: (() => Condition[]) | Condition[],
181
+ conditions?: ConditionsOrGetConditions,
182
+ statusConditions?: ConditionsOrGetConditions,
183
184
185
export type Navigation<
0 commit comments