react-archer
Version:
Draw arrows between DOM elements in React
5 lines (4 loc) • 406 B
TypeScript
import { ArcherContainerContextType } from '../ArcherContainer/ArcherContainer.context';
import { RelationType, SourceToTargetType } from '../types';
export declare function assertContextExists(context: ArcherContainerContextType | null): asserts context is ArcherContainerContextType;
export declare const generateSourceToTarget: (id: string, relations: Array<RelationType>) => Array<SourceToTargetType>;