Error correction in type definition

This commit is contained in:
Shan M
2020-05-06 09:33:55 +03:00
committed by GitHub
parent ea5c156cd7
commit 626a69fec4

6
src/litegraph.d.ts vendored
View File

@@ -929,7 +929,7 @@ export declare class LGraphNode {
inputIndex: number,
type: INodeOutputSlot["type"],
outputSlot: INodeOutputSlot,
this: this,
_this: this,
slotIndex: number
): boolean;
@@ -1127,7 +1127,7 @@ export declare class LGraphCanvas {
/** Called by `LGraphCanvas.processMouseDown` */
onMouse: ((event: MouseEvent) => boolean) | null;
/** Called by `LGraphCanvas.drawFrontCanvas` and `LGraphCanvas.drawLinkTooltip` */
onDrawLinkTooltip: ((ctx: CanvasRenderingContext2D, link: LLink, this: this) => void) | null;
onDrawLinkTooltip: ((ctx: CanvasRenderingContext2D, link: LLink, _this: this) => void) | null;
/** Called by `LGraphCanvas.selectNodes` */
onNodeMoved: ((node: LGraphNode) => void) | null;
/** Called by `LGraphCanvas.processNodeSelected` */
@@ -1139,7 +1139,7 @@ export declare class LGraphCanvas {
/** Called by `LGraphCanvas.processNodeDblClicked` */
onNodeDblClicked: ((node: LGraphNode) => void) | null;
/** Called by `LGraphCanvas.selectNodes` */
onSelectionChange: ((nodes: Record<number, LGraphNode>) => void) | null;
onSelectionChange: ((nodes) => void) | null;
/** Called by `LGraphCanvas.showSearchBox` */
onSearchBox:
| ((