Skip to content

Commit

Permalink
Remove typedef when used only once
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Aug 21, 2023
1 parent 1a5e92b commit 4ed0ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/image/dicomBufferToView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ import {PixelBufferDecoder} from './decoder';
import {DataElement} from '../dicom/dataElement';
/* eslint-enable no-unused-vars */

/**
* @typedef {Object<string, DataElement>} DataElements
*/

/**
* Create a View from a DICOM buffer.
*/
Expand Down Expand Up @@ -54,7 +50,7 @@ export class DicomBufferToView {
/**
* Get the factory associated to input DICOM elements.
*
* @param {DataElements} elements The DICOM elements.
* @param {Object<string, DataElement>} elements The DICOM elements.
* @returns {ImageFactory|MaskFactory} The associated factory.
*/
#getFactory(elements) {
Expand Down
6 changes: 1 addition & 5 deletions src/image/viewFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import {Image} from './image';
import {DataElement} from '../dicom/dataElement';
/* eslint-enable no-unused-vars */

/**
* @typedef {Object<string, DataElement>} DataElements
*/

/**
* {@link View} factory.
*/
Expand All @@ -23,7 +19,7 @@ export class ViewFactory {
/**
* Get an View object from the read DICOM file.
*
* @param {DataElements} dataElements The DICOM tags.
* @param {Object<string, DataElement>} dataElements The DICOM tags.
* @param {Image} image The associated image.
* @returns {View} The new View.
*/
Expand Down

0 comments on commit 4ed0ee8

Please sign in to comment.