Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

7coil
Copy link
Contributor

@7coil 7coil commented Aug 28, 2020

The ColorScaleRuleType should accept an array of Colours instead of a singular Colour.

Summary

TypeScript currently complains when providing an array of colours as part of a colour scale conditional formatting rule. This PR fixes the type definition to allow for an array of colours.

Test plan

Before
image

After
image

The ColorScaleRuleType should accept an array of Colours instead of a singular Colour.
@7coil 7coil changed the title Change typing for colorScale colour to array Change TypeScript typing for colorScale colour to array Aug 28, 2020
@7coil 7coil changed the title Change TypeScript typing for colorScale colour to array Change typing for colorScale colour to array of colours Aug 28, 2020
@guyonroche guyonroche merged commit 49a5875 into exceljs:master Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants