Skip to content

Commit

Permalink
style: auto-formatting [CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Nov 2, 2023
1 parent f45b37f commit 6fee7fb
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions src/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ export interface SelectionParameter<T extends SelectionType = SelectionType> {
* __See also:__ [`init`](https://vega.github.io/vega-lite/docs/value.html) documentation.
*/
value?: T extends 'point'
? SelectionInit | SelectionInitMapping[]
: T extends 'interval'
? SelectionInitIntervalMapping
: never;
? SelectionInit | SelectionInitMapping[]
: T extends 'interval'
? SelectionInitIntervalMapping
: never;

/**
* When set, a selection is populated by input elements (also known as dynamic query widgets)
Expand All @@ -238,10 +238,10 @@ export interface SelectionParameter<T extends SelectionType = SelectionType> {
* __See also:__ [`bind`](https://vega.github.io/vega-lite/docs/bind.html) documentation.
*/
bind?: T extends 'point'
? Binding | Record<string, Binding> | LegendBinding
: T extends 'interval'
? 'scales'
: never;
? Binding | Record<string, Binding> | LegendBinding
: T extends 'interval'
? 'scales'
: never;
}

export type TopLevelSelectionParameter = SelectionParameter & {
Expand All @@ -254,29 +254,29 @@ export type TopLevelSelectionParameter = SelectionParameter & {

export type ParameterExtent =
| {
/**
* The name of a parameter.
*/
param: ParameterName;

/**
* If a selection parameter is specified, the field name to extract selected values for
* when the selection is [projected](https://vega.github.io/vega-lite/docs/selection.html#project) over multiple fields or encodings.
*/
field?: FieldName;
}
/**
* The name of a parameter.
*/
param: ParameterName;

/**
* If a selection parameter is specified, the field name to extract selected values for
* when the selection is [projected](https://vega.github.io/vega-lite/docs/selection.html#project) over multiple fields or encodings.
*/
field?: FieldName;
}
| {
/**
* The name of a parameter.
*/
param: ParameterName;

/**
* If a selection parameter is specified, the encoding channel to extract selected values for
* when a selection is [projected](https://vega.github.io/vega-lite/docs/selection.html#project) over multiple fields or encodings.
*/
encoding?: SingleDefUnitChannel;
};
/**
* The name of a parameter.
*/
param: ParameterName;

/**
* If a selection parameter is specified, the encoding channel to extract selected values for
* when a selection is [projected](https://vega.github.io/vega-lite/docs/selection.html#project) over multiple fields or encodings.
*/
encoding?: SingleDefUnitChannel;
};

export type PointSelectionConfigWithoutType = Omit<PointSelectionConfig, 'type'>;

Expand Down

0 comments on commit 6fee7fb

Please sign in to comment.