You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a Marker, the typescript reports the color attribute to be a number. However, it should actually support strings as per mapbox documentation.
From what I gather, you aren't creating typescript types yourself, so it's likely as a result of the randomColour() function. Maybe this function could be changed to produce a random hex code (therefore returning a string) and then the types would be correct?
When creating a Marker, the typescript reports the
color
attribute to be a number. However, it should actually support strings as per mapbox documentation.From what I gather, you aren't creating typescript types yourself, so it's likely as a result of the randomColour() function. Maybe this function could be changed to produce a random hex code (therefore returning a string) and then the types would be correct?
Example:
Error:
The text was updated successfully, but these errors were encountered: