Skip to content

Commit

Permalink
convert to typescript, phetsims/shred#38
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 1, 2023
1 parent aa88a93 commit 50cb621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/model/BANParticle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* @author Luisa Vargas
*/

import Particle, { ParticleOptions } from '../../../../shred/js/model/Particle.js';
import Particle, { ParticleOptions, ParticleType } from '../../../../shred/js/model/Particle.js';
import BANConstants from '../BANConstants.js';
import buildANucleus from '../../buildANucleus.js';

export type BANParticleOptions = ParticleOptions;
export default class BANParticle extends Particle {

public constructor( type: string, providedOptions?: BANParticleOptions ) {
public constructor( type: ParticleType, providedOptions?: BANParticleOptions ) {
super( type, providedOptions );
this.animationVelocityProperty.value = BANConstants.PARTICLE_ANIMATION_SPEED;
}
Expand Down

0 comments on commit 50cb621

Please sign in to comment.