Skip to content

Commit

Permalink
fix: Remove unnecesary typeof from type imports in declarations (#5715
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jperals authored Jan 9, 2025
1 parent 37008e0 commit 2c8bf91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ace-internal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ 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").GutterTooltip;
type GutterKeyboardEvent = typeof import( "./src/keyboard/gutter_handler").GutterKeyboardEvent;
type GutterTooltip = import( "./src/mouse/default_gutter_handler").GutterTooltip;
type GutterKeyboardEvent = import( "./src/keyboard/gutter_handler").GutterKeyboardEvent;

type AfterLoadCallback = (err: Error | null, module: unknown) => void;
type LoaderFunction = (moduleName: string, afterLoad: AfterLoadCallback) => void;
Expand Down
4 changes: 2 additions & 2 deletions ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ 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").GutterTooltip;
type GutterKeyboardEvent = typeof import("ace-code/src/keyboard/gutter_handler").GutterKeyboardEvent;
type GutterTooltip = import("ace-code/src/mouse/default_gutter_handler").GutterTooltip;
type GutterKeyboardEvent = import("ace-code/src/keyboard/gutter_handler").GutterKeyboardEvent;
type AfterLoadCallback = (err: Error | null, module: unknown) => void;
type LoaderFunction = (moduleName: string, afterLoad: AfterLoadCallback) => void;
export interface ConfigOptions {
Expand Down

0 comments on commit 2c8bf91

Please sign in to comment.