File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
- export type Formatter = ( delta : Delta , original : any ) => string ;
1
+ export interface Formatter {
2
+ format ( delta : Delta , original : any ) : string ;
3
+ }
2
4
3
5
export interface Delta {
4
6
[ key : string ] : any ;
@@ -43,14 +45,21 @@ export class DiffPatcher {
43
45
constructor ( options ?: any ) ;
44
46
45
47
clone : ( value : any ) => any ;
46
- dateReviver : ( key : string , value : any ) => any ;
47
48
diff : ( left : any , right : any ) => Delta | undefined ;
48
- formatters : {
49
- annotated : Formatter ;
50
- console : Formatter ;
51
- html : Formatter ;
52
- } ;
53
49
patch : ( left : any , delta : Delta ) => any ;
54
50
reverse : ( delta : Delta ) => Delta | undefined ;
55
51
unpatch : ( right : any , delta : Delta ) => any ;
56
52
}
53
+
54
+ export const formatters : {
55
+ annotated : Formatter ;
56
+ console : Formatter ;
57
+ html : Formatter ;
58
+ } ;
59
+
60
+ export const console : Formatter
61
+
62
+ export const diff : ( left : any , right : any ) => Delta | undefined ;
63
+ export const patch : ( left : any , delta : Delta ) => any ;
64
+ export const reverse : ( delta : Delta ) => Delta | undefined ;
65
+ export const unpatch : ( right : any , delta : Delta ) => any ;
You can’t perform that action at this time.
0 commit comments