react-code-compare
Version:
A simple and fast text diff viewer component
20 lines (17 loc) • 734 B
TypeScript
import { LineInformation } from './compute-lines.js';
import { ReactCodeCompareStyles } from './styles.js';
import { OnLineNumberClickProxy, LineDiffViewOptions } from './types.js';
import 'create-emotion';
import 'react';
import '@tanstack/react-virtual';
declare function SplitView({ lineInformation, styles, xSpacer, highlightLines, onLineNumberClickProxy, diffViewOptions, rowIndex, rowRef, }: {
lineInformation: LineInformation;
styles: ReactCodeCompareStyles;
xSpacer: boolean;
highlightLines: string[];
onLineNumberClickProxy: OnLineNumberClickProxy;
diffViewOptions: LineDiffViewOptions;
rowIndex?: number;
rowRef?: (node: HTMLTableRowElement) => void;
}): JSX.Element;
export { SplitView };