From 36e594e32e494d871b17c60d368e648beecfa88d Mon Sep 17 00:00:00 2001 From: Joan Perals Tresserra Date: Thu, 9 Jan 2025 13:15:58 +0100 Subject: [PATCH] fix: Remove unnecesary `typeof` from type imports in declarations --- ace-internal.d.ts | 4 ++-- ace.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ace-internal.d.ts b/ace-internal.d.ts index 5c43e7e083..26a2fd927f 100644 --- a/ace-internal.d.ts +++ b/ace-internal.d.ts @@ -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; diff --git a/ace.d.ts b/ace.d.ts index 665d852958..0cf06e95d6 100644 --- a/ace.d.ts +++ b/ace.d.ts @@ -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 {