Skip to content

Change typing for colorScale colour to array of colours #1442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2020

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy