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
Following error: Type 'number' is not assignable to type 'string | ((ctx: ScriptableCartesianScaleContext, options: AnyObject) => string | null | undefined) | null | undefined'.
Expected behavior
No TypeScript error
Current behavior
Following error:
Type 'number' is not assignable to type 'string | ((ctx: ScriptableCartesianScaleContext, options: AnyObject) => string | null | undefined) | null | undefined'.
Reproducible sample
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgYQBYENYBoUdgeTBmAgDsBnOAXzgDMoIQ4ByAYzxgDoArc5gbgCwAKBGsy5eBCIkKALlyYYhYhIA8zAEYBXTZoA2AU2YA+OAF5EIuHHKt0R8goTWbcAB7PXbuMRhGvYR8fGEN3GAVmdwBBd2A+LG9g2jIIqyDgnwB3Q2AAc1Q0gE4ABhLEjMyqJJtqyupXOqohUWEAN0w4Vhh3CzgAEwhWbRBDUi48wxgAUSNR8YAhAE8ASX6ACgAiECW0JU2ASjh0SgAJABUAWQAZZHRSDvJZw3mYFo6oOB292D7SQyyilg6267hwLnqMCWYEMkR0eiMzAqPn66Bg6ECmVR6PIUyccAA2jU3BDMj59OhNIZ9JFsScpkjiSi0RjCQhPHAAIw4JYKABMOCgCgAzFRwRyBXBeXBhYKRVQALrIsli4lKpKq+rSVTyODa2TkZWag78IA
Optional extra steps/info to reproduce
No response
Possible solution
Update the type of 'weight' in the 'FontSpec' interface to also accept numbers.
Context
No response
chart.js version
v4.4.0
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: