chart.js
View on npm →Issues by Rule
tjd/accurate-jsdoc Issues by File
src/core/core.controller.js 2 issues@returns: ChartEvent|null → ChartEvent. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.
@param 'lastEvent': ChartEvent|null → ChartEvent. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.
src/core/core.interaction.js 1 issue@returns: {lo:number, hi:number} → { lo: number; hi: number; }. Types differ. Run with --fix to update JSDoc, or verify the intended type.
src/core/core.plugins.js 1 issue@param 'config': import('./core.config.js').default → Config. Types differ. Run with --fix to update JSDoc, or verify the intended type.
src/core/core.scale.autoskip.js 1 issue@param 'scale': import('./core.scale.js').default → Scale. Types differ. Run with --fix to update JSDoc, or verify the intended type.
src/elements/element.line.js 4 issues@param 'segment': object → { start: number; end: number; loop: boolean; }. JSDoc uses generic "object" but TypeScript infers a specific shape. Consider using @typedef to document the object structure.
@param 'params': object → { move: boolean; reverse: boolean; start: number; end: nu.... JSDoc uses generic "object" but TypeScript infers a specific shape. Consider using @typedef to document the object structure.
@param 'segment': object → { start: number; end: number; loop: boolean; }. JSDoc uses generic "object" but TypeScript infers a specific shape. Consider using @typedef to document the object structure.
@param 'params': object → { move: boolean; reverse: boolean; start: number; end: nu.... JSDoc uses generic "object" but TypeScript infers a specific shape. Consider using @typedef to document the object structure.
src/helpers/helpers.segment.js 3 issues@param 'segment': object → { start: number; end: number; loop: boolean; style?: any; }. JSDoc uses generic "object" but TypeScript infers a specific shape. Consider using @typedef to document the object structure.
@param 'bounds': object → { property: string; start: number; end: number; }. JSDoc uses generic "object" but TypeScript infers a specific shape. Consider using @typedef to document the object structure.
@param 'bounds': object → { property: string; start: number; end: number; }. JSDoc uses generic "object" but TypeScript infers a specific shape. Consider using @typedef to document the object structure.
src/plugins/plugin.filler/filler.options.js 2 issues@returns: number | null → number. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.
@returns: number | undefined → number. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.
src/plugins/plugin.filler/filler.target.stack.js 1 issue@returns: {point?: PointElement, first?: boolean, last?: boolean} → { point?: PointElement; first?: boolean; last?: boolean; }. Types differ. Run with --fix to update JSDoc, or verify the intended type.
src/plugins/plugin.tooltip.js 2 issues@param 'callbacks': Record<keyof typeof defaultCallbacks, Function> → Record<"beforeTitle" | "title" | "afterTitle" | "beforeBo.... JSDoc declares generic but TypeScript infers union.
@param 'name': keyof typeof defaultCallbacks → "beforeTitle" | "title" | "afterTitle" | "beforeBody" | ".... JSDoc declares unknown but TypeScript infers union.
src/scales/scale.linearbase.js 1 issue@returns: object[] → any[]. Types differ. Run with --fix to update JSDoc, or verify the intended type.
src/scales/scale.logarithmic.js 1 issue@returns: object[] → any[]. Types differ. Run with --fix to update JSDoc, or verify the intended type.
src/scales/scale.time.js 9 issues@param 'minUnit': Unit → TimeUnit. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@returns: Unit → TimeUnit. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@param 'minUnit': Unit → TimeUnit. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@param 'unit': Unit → TimeUnit. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@returns: object[] → any[]. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@param 'ticks': object[] → any[]. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@param 'majorUnit': Unit → TimeUnit. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@returns: object[] → any[]. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@param 'majorUnit': Unit|undefined → TimeUnit. JSDoc declares union but TypeScript infers unknown.
Analyzed: 2/3/2026