fix typescript warning about override of state

This commit is contained in:
Aran-Fey
2024-10-04 15:04:57 +02:00
parent acb0a80d72
commit 753132718d
61 changed files with 63 additions and 63 deletions

View File

@@ -22,7 +22,7 @@ type PlotState = ComponentState & {
};
export class PlotComponent extends ComponentBase {
state: Required<PlotState>;
declare state: Required<PlotState>;
// I know this abstraction looks like overkill, but plotly does so much
// stuff with a time delay (loading plotly, setTimeout, resizeObserver, ...)