Skip to content

Commit

Permalink
convert Units to a typescript type, phetsims/axon#452
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed May 15, 2024
1 parent 49d92a4 commit 583124a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/diffusion/model/DiffusionParticleSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ import NullableIO from '../../../../tandem/js/types/NullableIO.js';
import IOType from '../../../../tandem/js/types/IOType.js';
import ParticleFlowRateModel from './ParticleFlowRateModel.js';
import ReferenceArrayIO from '../../../../tandem/js/types/ReferenceArrayIO.js';
import { Units } from '../../../../axon/js/units.js';

const CENTER_OF_MASS_PROPERTY_OPTIONS = {
units: 'pm',
units: 'pm' as Units,
valueType: [ 'number', null ],
phetioValueType: NullableIO( NumberIO ),
phetioReadOnly: true // derived from the state of the particle system
Expand Down

0 comments on commit 583124a

Please sign in to comment.