UNPKG

react-diff-view

Version:

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

7 lines (6 loc) 480 B
import { ProcessingNode, TextNode, TokenPath } from './interface'; export declare function clone(path: TokenPath): TokenPath; export declare function replace(path: TokenPath, leaf: ProcessingNode): TokenPath; export declare function wrap(path: TokenPath, parent: ProcessingNode): TokenPath; export declare function leafOf(path: TokenPath): TextNode; export declare function split(path: TokenPath, splitStart: number, splitEnd: number, wrapSplitNode: ProcessingNode): TokenPath[];