fix: getColorList parmas type (#1)

This commit is contained in:
PY 2021-11-19 16:30:46 +08:00 committed by GitHub
parent c01032bd4f
commit 07b63e32fa

View File

@ -157,7 +157,7 @@ export function getBrandColor(type: string): ColorToken {
return COLOR_TOKEN[name] || COLOR_TOKEN.DEFAULT;
}
export function getColorList(colorArray: [ColorToken]): string[] {
export function getColorList(colorArray: ColorToken[]): string[] {
const pureColorList = [];
colorArray.map(colorToken => Object.keys(colorToken).map(key => pureColorList.push(colorToken[key])));