35 lines
781 B
TypeScript
35 lines
781 B
TypeScript
import type { Connection, Endpoint, EndpointRepresentation, AbstractConnector, Overlay } from '@jsplumb/core';
|
|
import type { NodeConnectionType } from 'n8n-workflow';
|
|
|
|
declare module '@jsplumb/core' {
|
|
interface EndpointRepresentation {
|
|
canvas: HTMLElement;
|
|
scope: NodeConnectionType;
|
|
}
|
|
interface AbstractConnector {
|
|
canvas: HTMLElement;
|
|
overrideTargetEndpoint: Endpoint;
|
|
}
|
|
interface Overlay {
|
|
canvas: HTMLElement;
|
|
}
|
|
interface Connection {
|
|
__meta: {
|
|
sourceOutputIndex: number;
|
|
targetNodeName: string;
|
|
targetOutputIndex: number;
|
|
sourceNodeName: string;
|
|
};
|
|
}
|
|
interface Endpoint {
|
|
scope: NodeConnectionType;
|
|
__meta: {
|
|
nodeName: string;
|
|
nodeId: string;
|
|
index: number;
|
|
totalEndpoints: number;
|
|
endpointLabelLength: number;
|
|
};
|
|
};
|
|
}
|