UNPKG

react-diff-view

Version:

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

8 lines (7 loc) 296 B
import { HunkData } from '../utils'; import { TokenizeEnhancer } from './interface'; export type MarkEditsType = 'block' | 'line'; export interface MarkEditsOptions { type?: MarkEditsType; } export default function markEdits(hunks: HunkData[], { type }?: MarkEditsOptions): TokenizeEnhancer;