mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
[TS] Improve types and (#1043)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { ContextMenu } from "./ContextMenu"
|
||||
import type { LGraphCanvasEventMap } from "./infrastructure/LGraphCanvasEventMap"
|
||||
import type {
|
||||
CanvasColour,
|
||||
ColorOption,
|
||||
@@ -27,7 +28,6 @@ import type {
|
||||
} from "./interfaces"
|
||||
import type { LGraph } from "./LGraph"
|
||||
import type {
|
||||
CanvasEventDetail,
|
||||
CanvasMouseEvent,
|
||||
CanvasPointerEvent,
|
||||
CanvasPointerExtensions,
|
||||
@@ -3151,7 +3151,7 @@ export class LGraphCanvas {
|
||||
)
|
||||
}
|
||||
|
||||
emitEvent(detail: CanvasEventDetail): void {
|
||||
emitEvent(detail: LGraphCanvasEventMap["litegraph:canvas"]): void {
|
||||
this.canvas.dispatchEvent(
|
||||
new CustomEvent("litegraph:canvas", {
|
||||
bubbles: true,
|
||||
|
||||
Reference in New Issue
Block a user