react-diff-view
Version:
A git diff component to consume the git unified diff output.
7 lines (6 loc) • 308 B
TypeScript
import { Hunk } from 'gitdiff-parser';
import { ChangeEventArgs } from '../context';
export interface UseChangeSelectOptions {
multiple?: boolean;
}
export default function useChangeSelect(hunks: Hunk[], { multiple }?: UseChangeSelectOptions): readonly [string[], ({ change }: ChangeEventArgs) => void];