flagstaff
API reference

flagstaff/diff

Every export of flagstaff/diff, with its signature and doc comment: diff, plus 1 type.

import { diff } from 'flagstaff/diff';

Functions

diff

A unified diff: unchanged off a terminal, numbered and coloured on one.

function diff(): Component<DiffState>;

Returns Component<DiffState>

Interfaces

DiffState

interface DiffState {
    /** A unified diff, as `git diff` or `diff -u` prints it. */
    diff: string;
}

On this page