UNPKG

react-diff-view

Version:

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

3 lines (2 loc) 195 B
import { HunkData, Source } from '../utils'; export default function useSourceExpansion(hunks: HunkData[], oldSource: Source | null): readonly [HunkData[], (start: number, end: number) => void];