diff --git a/src/index.d.ts b/src/index.d.ts index 298324ba..cc1707cc 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -2,6 +2,11 @@ export interface Formatter { format(delta: Delta, original: any): string; } +export interface HTMLFormatter extends Formatter { + showUnchanged(): void; + hideUnchanged(): void; +} + export interface Delta { [key: string]: any; [key: number]: any; @@ -56,7 +61,7 @@ export const create: (options?: any) => DiffPatcher export const formatters: { annotated: Formatter; console: Formatter; - html: Formatter; + html: HTMLFormatter; }; export const console: Formatter