Skip to main content

Function: teamColorsSync()

teamColorsSync<T>(league, teams, opts?): ColorResult<T>

Defined in: packages/sdvplot/src/colors.ts:91

One #hex (or undefined) per team value, in the container the values came in. Call after the league is loaded.

Type Parameters​

T​

T extends Value | readonly Value[]

Parameters​

league​

"aaf" | "ahl" | "cfb" | "cricket" | "echl" | "mbb" | "milb" | "mlb" | "nba" | "nbagl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "ohl" | "phf" | "pwhl" | "qmjhl" | "soccer" | "ufl" | "usfl" | "ushl" | "wbb" | "whl" | "wnba" | "xfl"

teams​

T

opts?​

ColorOptions = {}

Returns​

ColorResult<T>