Skip to content

Commit

Permalink
fix(core): fieldDef typings, allow multiple conditions in ValueDefs
Browse files Browse the repository at this point in the history
  • Loading branch information
tuner committed Mar 8, 2024
1 parent fc10bff commit 130b5c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/spec/channel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ export type ValueDefWithCondition<V extends Value = Value> = Partial<
condition?:
| Conditional<FieldDef>
| Conditional<DatumDef>
| Conditional<ValueDef<V | ExprRef>>;
| Conditional<ValueDef<V | ExprRef>>
| Conditional<ValueDef<V | ExprRef>>[];
};

export type MarkPropFieldOrDatumOrExprDef<T extends Type = Type> =
Expand Down

0 comments on commit 130b5c8

Please sign in to comment.