Skip to content

Commit

Permalink
Improve TypeScript conventions, see #749
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 7, 2022
1 parent 1ef5f64 commit c81cee3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions js/model/CircuitElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ abstract class CircuitElement extends PhetioObject {
static CircuitElementIO: IOType;
readonly lengthProperty: Property<number> | undefined;

/**
* @param {Vertex} startVertex
* @param {Vertex} endVertex
* @param {number} chargePathLength
* @param {Tandem} tandem
* @param {Object} [providedOptions]
*/
constructor( startVertex: Vertex, endVertex: Vertex, chargePathLength: number, tandem: Tandem, providedOptions?: Partial<CircuitElementOptions> ) {
assert && assert( startVertex !== endVertex, 'startVertex cannot be the same as endVertex' );
assert && assert( typeof chargePathLength === 'number', 'charge path length should be a number' );
Expand Down

0 comments on commit c81cee3

Please sign in to comment.