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 (
115115/**
116116 * NotebookDiff widget
117117 */
118- export class NotebookDiff
119- extends Panel
120- implements Git . Diff . IDiffWidget < string >
121- {
118+ export class NotebookDiff extends Panel implements Git . Diff . IDiffWidget {
122119 constructor ( model : Git . Diff . IModel < string > , renderMime : IRenderMimeRegistry ) {
123120 super ( ) ;
124121 const getReady = new PromiseDelegate < void > ( ) ;
@@ -183,7 +180,9 @@ export class NotebookDiff
183180 const widget = this . nbdWidget as NotebookMergeWidget ;
184181 this . _lastSerializeModel = widget . model . serialize ( ) ;
185182 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+ ) ;
187186 }
188187
189188 /**
@@ -196,7 +195,9 @@ export class NotebookDiff
196195 return Promise . resolve ( {
197196 format : 'json' ,
198197 type : 'notebook' ,
199- content : this . _lastSerializeModel ?? ( this . nbdWidget as NotebookMergeWidget ) . model . serialize ( )
198+ content :
199+ this . _lastSerializeModel ??
200+ ( this . nbdWidget as NotebookMergeWidget ) . model . serialize ( )
200201 } ) ;
201202 }
202203
Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ export const createPlainTextDiff: Git.Diff.ICallback<string> = async (
2626/**
2727 * Plain Text Diff widget
2828 */
29- export class PlainTextDiff
30- extends Widget
31- implements Git . Diff . IDiffWidget < string >
32- {
29+ export class PlainTextDiff extends Widget implements Git . Diff . IDiffWidget {
3330 constructor ( model : Git . Diff . IModel < string > ) {
3431 super ( {
3532 node : PlainTextDiff . createNode (
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ export namespace Git {
469469 /**
470470 * Diff widget interface
471471 */
472- export interface IDiffWidget < T > extends Widget {
472+ export interface IDiffWidget extends Widget {
473473 /**
474474 * Refresh the diff widget
475475 *
@@ -498,7 +498,7 @@ export namespace Git {
498498 export type ICallback < T > = (
499499 model : IModel < T > ,
500500 toolbar ?: Toolbar
501- ) => Promise < IDiffWidget < T > > ;
501+ ) => Promise < IDiffWidget > ;
502502
503503 /**
504504 * Content and its context for diff
You can’t perform that action at this time.
0 commit comments