Skip to content

Commit

Permalink
🤖 Merge PR #65953 [plotly.js] Add missing data property on PlotlyHTML…
Browse files Browse the repository at this point in the history
…Element. by @jychen630

Signed-off-by: Junyao Chen <junyao.chen@nyu.edu>
  • Loading branch information
jychen630 committed Jul 2, 2023
1 parent d30ce29 commit 7624bd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/plotly.js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export interface PlotlyHTMLElement extends HTMLElement {
callback: () => void,
): void;
removeAllListeners: (handler: string) => void;
data: Data[];
}

export interface ToImgopts {
Expand Down
2 changes: 2 additions & 0 deletions types/plotly.js/test/index-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,8 @@ function rand() {
});

myPlot.removeAllListeners('plotly_restyle');

myPlot.data; // $ExpectType Data[]
})();
//////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit 7624bd8

Please sign in to comment.