Skip to content

Commit

Permalink
Update types.ts to match ace-builds
Browse files Browse the repository at this point in the history
ace-builds defines scroller as an HTMLElement. This change avoids type errors when using IAceEditor as the type of the editor reference returned from onLoad.
  • Loading branch information
gchallen committed Apr 30, 2024
1 parent 83ef07e commit 723b94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export interface IAnnotation {

interface IRenderer extends Ace.VirtualRenderer {
placeholderNode?: HTMLDivElement;
scroller: HTMLDivElement;
scroller: HTMLElement;
}

export type IAceEditor = Ace.Editor & {
Expand Down

0 comments on commit 723b94b

Please sign in to comment.