UNPKG

react-diff-view

Version:

A git diff component to consume the git unified diff output.

13 lines (12 loc) 484 B
import { ComponentType } from 'react'; import { UseChangeSelectOptions } from '../hooks'; import { ChangeEventArgs } from '../context'; import { HunkData } from '../utils'; export default function withChangeSelect(options: UseChangeSelectOptions): <P extends { hunks: HunkData[]; }>(ComponentIn: ComponentType<P>) => { (props: P & { onToggleChangeSelection: (args: ChangeEventArgs) => void; }): import("react/jsx-runtime").JSX.Element; displayName: string; };