Skip to content

Commit 2c8bf91

Browse files
authored
fix: Remove unnecesary typeof from type imports in declarations (#5715)
1 parent 37008e0 commit 2c8bf91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ace-internal.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export namespace Ace {
2727
type DragdropHandler = import("./src/mouse/dragdrop_handler").DragdropHandler;
2828
type AppConfig = import("./src/lib/app_config").AppConfig;
2929
type Config = typeof import("./src/config");
30-
type GutterTooltip = typeof import( "./src/mouse/default_gutter_handler").GutterTooltip;
31-
type GutterKeyboardEvent = typeof import( "./src/keyboard/gutter_handler").GutterKeyboardEvent;
30+
type GutterTooltip = import( "./src/mouse/default_gutter_handler").GutterTooltip;
31+
type GutterKeyboardEvent = import( "./src/keyboard/gutter_handler").GutterKeyboardEvent;
3232

3333
type AfterLoadCallback = (err: Error | null, module: unknown) => void;
3434
type LoaderFunction = (moduleName: string, afterLoad: AfterLoadCallback) => void;

ace.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ declare module "ace-code" {
3636
type DragdropHandler = import("ace-code/src/mouse/dragdrop_handler").DragdropHandler;
3737
type AppConfig = import("ace-code/src/lib/app_config").AppConfig;
3838
type Config = typeof import("ace-code/src/config");
39-
type GutterTooltip = typeof import("ace-code/src/mouse/default_gutter_handler").GutterTooltip;
40-
type GutterKeyboardEvent = typeof import("ace-code/src/keyboard/gutter_handler").GutterKeyboardEvent;
39+
type GutterTooltip = import("ace-code/src/mouse/default_gutter_handler").GutterTooltip;
40+
type GutterKeyboardEvent = import("ace-code/src/keyboard/gutter_handler").GutterKeyboardEvent;
4141
type AfterLoadCallback = (err: Error | null, module: unknown) => void;
4242
type LoaderFunction = (moduleName: string, afterLoad: AfterLoadCallback) => void;
4343
export interface ConfigOptions {

0 commit comments

Comments
 (0)