diff2html/src/ui/js/diff2html-ui.ts

13 lines
449 B
TypeScript
Raw Normal View History

2019-12-29 22:31:32 +00:00
import hljs from 'highlight.js';
2019-10-12 21:45:49 +00:00
2019-12-29 22:31:32 +00:00
import { DiffFile } from '../../types';
import { Diff2HtmlUI as Diff2HtmlUIBase, Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig } from './diff2html-ui-base';
2019-10-12 21:45:49 +00:00
2019-12-29 22:31:32 +00:00
export class Diff2HtmlUI extends Diff2HtmlUIBase {
2019-10-12 21:45:49 +00:00
constructor(diffInput: string | DiffFile[], target: HTMLElement, config: Diff2HtmlUIConfig = {}) {
2019-12-29 22:31:32 +00:00
super(diffInput, target, config, hljs);
2019-10-12 21:45:49 +00:00
}
}
2019-12-29 22:31:32 +00:00
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };