Skip to content

Commit

Permalink
fix: do not allow signals in value refs value (#7363)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 6, 2021
1 parent a082ce1 commit 2fbe4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vega.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function isSignalRef(o: any): o is SignalRef {

// TODO: add type of value (Make it VgValueRef<V extends ValueOrGradient> {value?:V ...})
export interface VgValueRef {
value?: Value;
value?: Value<never>; // value should never be a signal so we use never
field?:
| string
| {
Expand Down

0 comments on commit 2fbe4b1

Please sign in to comment.