Skip to content

Commit

Permalink
fix: correct types for domain unionWith
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Oct 6, 2023
1 parent 9aab68e commit ac509ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export interface DomainUnionWith {
* Customized domain values to be union with the field's values or explicitly defined domain.
* Should be an array of valid scale domain values.
*/
unionWith: number[] | string[] | boolean[] | DateTime[];
unionWith: (number | string | boolean | DateTime)[];
}

export function isDomainUnionWith(domain: Domain): domain is DomainUnionWith {
Expand Down

0 comments on commit ac509ca

Please sign in to comment.