Skip to content

Commit

Permalink
properly type guttertooltip events
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Koreman committed Jan 7, 2025
1 parent 00a7b5d commit 791b5b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ace-internal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export namespace Ace {
type DragdropHandler = import("./src/mouse/dragdrop_handler").DragdropHandler;
type AppConfig = import("./src/lib/app_config").AppConfig;
type Config = typeof import("./src/config");
type GutterTooltip = typeof import( "./src/mouse/default_gutter_handler");

type AfterLoadCallback = (err: Error | null, module: unknown) => void;
type LoaderFunction = (moduleName: string, afterLoad: AfterLoadCallback) => void;
Expand Down Expand Up @@ -526,8 +527,8 @@ export namespace Ace {
"select": () => void;
"gutterkeydown": (e: any) => void;
"gutterclick": (e: any) => void;
"showGutterTooltip": (e: any) => void;
"hideGutterTooltip": (e: any) => void;
"showGutterTooltip": (e: GutterTooltip) => void;
"hideGutterTooltip": (e: GutterTooltip) => void;
}

interface AcePopupEvents {
Expand Down
5 changes: 3 additions & 2 deletions ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ declare module "ace-code" {
type DragdropHandler = import("ace-code/src/mouse/dragdrop_handler").DragdropHandler;
type AppConfig = import("ace-code/src/lib/app_config").AppConfig;
type Config = typeof import("ace-code/src/config");
type GutterTooltip = typeof import("ace-code/src/mouse/default_gutter_handler");
type AfterLoadCallback = (err: Error | null, module: unknown) => void;
type LoaderFunction = (moduleName: string, afterLoad: AfterLoadCallback) => void;
export interface ConfigOptions {
Expand Down Expand Up @@ -439,8 +440,8 @@ declare module "ace-code" {
"select": () => void;
"gutterkeydown": (e: any) => void;
"gutterclick": (e: any) => void;
"showGutterTooltip": (e: any) => void;
"hideGutterTooltip": (e: any) => void;
"showGutterTooltip": (e: GutterTooltip) => void;
"hideGutterTooltip": (e: GutterTooltip) => void;
}
interface AcePopupEvents {
"click": (e: MouseEvent) => void;
Expand Down

0 comments on commit 791b5b8

Please sign in to comment.