File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,7 @@ export const createNotebookDiff = async (
115
115
/**
116
116
* NotebookDiff widget
117
117
*/
118
- export class NotebookDiff
119
- extends Panel
120
- implements Git . Diff . IDiffWidget < string >
121
- {
118
+ export class NotebookDiff extends Panel implements Git . Diff . IDiffWidget {
122
119
constructor ( model : Git . Diff . IModel < string > , renderMime : IRenderMimeRegistry ) {
123
120
super ( ) ;
124
121
const getReady = new PromiseDelegate < void > ( ) ;
@@ -183,7 +180,9 @@ export class NotebookDiff
183
180
const widget = this . nbdWidget as NotebookMergeWidget ;
184
181
this . _lastSerializeModel = widget . model . serialize ( ) ;
185
182
const validated = widget . validateMerged ( this . _lastSerializeModel ) ;
186
- return JSON . stringify ( this . _lastSerializeModel ) === JSON . stringify ( validated )
183
+ return (
184
+ JSON . stringify ( this . _lastSerializeModel ) === JSON . stringify ( validated )
185
+ ) ;
187
186
}
188
187
189
188
/**
@@ -196,7 +195,9 @@ export class NotebookDiff
196
195
return Promise . resolve ( {
197
196
format : 'json' ,
198
197
type : 'notebook' ,
199
- content : this . _lastSerializeModel ?? ( this . nbdWidget as NotebookMergeWidget ) . model . serialize ( )
198
+ content :
199
+ this . _lastSerializeModel ??
200
+ ( this . nbdWidget as NotebookMergeWidget ) . model . serialize ( )
200
201
} ) ;
201
202
}
202
203
Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ export const createPlainTextDiff: Git.Diff.ICallback<string> = async (
26
26
/**
27
27
* Plain Text Diff widget
28
28
*/
29
- export class PlainTextDiff
30
- extends Widget
31
- implements Git . Diff . IDiffWidget < string >
32
- {
29
+ export class PlainTextDiff extends Widget implements Git . Diff . IDiffWidget {
33
30
constructor ( model : Git . Diff . IModel < string > ) {
34
31
super ( {
35
32
node : PlainTextDiff . createNode (
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ export namespace Git {
469
469
/**
470
470
* Diff widget interface
471
471
*/
472
- export interface IDiffWidget < T > extends Widget {
472
+ export interface IDiffWidget extends Widget {
473
473
/**
474
474
* Refresh the diff widget
475
475
*
@@ -498,7 +498,7 @@ export namespace Git {
498
498
export type ICallback < T > = (
499
499
model : IModel < T > ,
500
500
toolbar ?: Toolbar
501
- ) => Promise < IDiffWidget < T > > ;
501
+ ) => Promise < IDiffWidget > ;
502
502
503
503
/**
504
504
* Content and its context for diff
You can’t perform that action at this time.
0 commit comments