Skip to content

Commit 11351e9

Browse files
committed
Lint the code
1 parent 2e7ad8a commit 11351e9

File tree

1 file changed

+26
-36
lines changed

1 file changed

+26
-36
lines changed

javascript/src/api.ts

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -197,35 +197,30 @@ export interface ISharedNotebook extends ISharedDocument {
197197
*
198198
* @returns Notebook's metadata.
199199
*/
200-
getMetadata(): nbformat.INotebookMetadata;
201-
202-
/**
203-
* Returns a metadata associated with the notebook.
204-
*
205-
* @param key Key to get from the metadata
206-
* @returns Notebook's metadata.
207-
*/
208-
getMetadata(key: string): PartialJSONValue | undefined;
209-
210-
/**
211-
* Sets all metadata associated with the notebook.
212-
*
213-
* @param metadata All Notebook's metadata.
214-
*/
215-
setMetadata(
216-
metadata: nbformat.INotebookMetadata,
217-
): void;
218-
219-
/**
220-
* Sets a metadata associated with the notebook.
221-
*
222-
* @param metadata The key to set.
223-
* @param value New metadata value
224-
*/
225-
setMetadata(
226-
metadata: string,
227-
value: PartialJSONValue
228-
): void;
200+
getMetadata(): nbformat.INotebookMetadata;
201+
202+
/**
203+
* Returns a metadata associated with the notebook.
204+
*
205+
* @param key Key to get from the metadata
206+
* @returns Notebook's metadata.
207+
*/
208+
getMetadata(key: string): PartialJSONValue | undefined;
209+
210+
/**
211+
* Sets all metadata associated with the notebook.
212+
*
213+
* @param metadata All Notebook's metadata.
214+
*/
215+
setMetadata(metadata: nbformat.INotebookMetadata): void;
216+
217+
/**
218+
* Sets a metadata associated with the notebook.
219+
*
220+
* @param metadata The key to set.
221+
* @param value New metadata value
222+
*/
223+
setMetadata(metadata: string, value: PartialJSONValue): void;
229224

230225
/**
231226
* Updates the metadata associated with the notebook.
@@ -456,20 +451,15 @@ export interface ISharedBaseCell<
456451
*
457452
* @param metadata Cell's metadata.
458453
*/
459-
setMetadata(
460-
metadata: Partial<Metadata>,
461-
): void;
454+
setMetadata(metadata: Partial<Metadata>): void;
462455

463456
/**
464457
* Sets a cell metadata.
465458
*
466459
* @param metadata Cell's metadata key.
467460
* @param value Metadata value
468461
*/
469-
setMetadata(
470-
metadata: string,
471-
value: PartialJSONValue
472-
): void;
462+
setMetadata(metadata: string, value: PartialJSONValue): void;
473463

474464
/**
475465
* Serialize the model to JSON.

0 commit comments

Comments
 (0)