From 50cb621c3a78993bb40f06137848eb89300b62bc Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Tue, 1 Aug 2023 15:24:05 -0600 Subject: [PATCH] convert to typescript, https://github.com/phetsims/shred/issues/38 --- js/common/model/BANParticle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common/model/BANParticle.ts b/js/common/model/BANParticle.ts index ab167ec..2c6e3fe 100644 --- a/js/common/model/BANParticle.ts +++ b/js/common/model/BANParticle.ts @@ -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; }