Expected Behavior
Types are updated to match new layout.autoPadding option, introduced in #9716.
Current Behavior
The following options object throws an error. The code does what I expect from it when adding a // @ts-ignore above it.
const options: ChartOptions<'line'> = {
layout: {
autoPadding: false
}
}
Possible Solution
A type definition added for this option here?
|
layout: { |
|
padding: Scriptable<number | Partial<ChartArea>, ScriptableContext<TType>>; |
|
}; |
Environment
Expected Behavior
Types are updated to match new
layout.autoPaddingoption, introduced in #9716.Current Behavior
The following options object throws an error. The code does what I expect from it when adding a
// @ts-ignoreabove it.Possible Solution
A type definition added for this option here?
Chart.js/types/index.esm.d.ts
Lines 1493 to 1495 in e43730e
Environment