Skip to content

Commit 5b46175

Browse files
authored
Merge branch 'master' into typings-html-formatter
2 parents 83afa4d + 2b4d939 commit 5b46175

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/index.d.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export interface HtmlFormatter extends Formatter {
1919
hideUnchanged(node?: Element | null, delay?: number): void;
2020
}
2121

22+
export interface HTMLFormatter extends Formatter {
23+
showUnchanged(): void;
24+
hideUnchanged(): void;
25+
}
26+
2227
export interface Delta {
2328
[key: string]: any;
2429
[key: number]: any;
@@ -68,14 +73,18 @@ export class DiffPatcher {
6873
unpatch: (right: any, delta: Delta) => any;
6974
}
7075

76+
export const create: (options?: any) => DiffPatcher
77+
7178
export const formatters: {
72-
annotated: Formatter;
73-
console: Formatter;
74-
html: HtmlFormatter;
79+
annotated: Formatter;
80+
console: Formatter;
81+
html: HTMLFormatter;
7582
};
7683

7784
export const console: Formatter
7885

86+
export const dateReviver: (key: string, value: any) => any;
87+
7988
export const diff: (left: any, right: any) => Delta | undefined;
8089
export const patch: (left: any, delta: Delta) => any;
8190
export const reverse: (delta: Delta) => Delta | undefined;

0 commit comments

Comments
 (0)