Skip to content

Commit

Permalink
Rename RichEnumerationIO ->EnumerationIO, delete old version, move fi…
Browse files Browse the repository at this point in the history
…le to tandem (with history), phetsims/phet-core#97
  • Loading branch information
zepumph committed Jan 13, 2022
1 parent 8a802b1 commit 66aee3f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 55 deletions.
2 changes: 1 addition & 1 deletion js/EnumerationDeprecatedProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Chris Malley (PixelZoom, Inc.)
*/

import EnumerationIO from '../../phet-core/js/EnumerationIO.js';
import EnumerationIO from '../../tandem/js/types/EnumerationIO.js';
import merge from '../../phet-core/js/merge.js';
import axon from './axon.js';
import Property from './Property.js';
Expand Down
2 changes: 1 addition & 1 deletion js/EnumerationPropertyDeprecatedTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import EnumerationDeprecated from '../../phet-core/js/EnumerationDeprecated.js';
import EnumerationIO from '../../phet-core/js/EnumerationIO.js';
import EnumerationIO from '../../tandem/js/types/EnumerationIO.js';
import EnumerationDeprecatedProperty from './EnumerationDeprecatedProperty.js';

QUnit.module( 'EnumerationDeprecatedProperty' );
Expand Down
50 changes: 0 additions & 50 deletions js/RichEnumerationIO.ts

This file was deleted.

4 changes: 2 additions & 2 deletions js/RichEnumerationProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import Property, { PropertyOptions } from './Property.js';
import RichEnumerationIO from './RichEnumerationIO.js';
import EnumerationIO from '../../tandem/js/types/EnumerationIO.js';
import merge from '../../phet-core/js/merge.js';
import EnumerationValue from '../../phet-core/js/EnumerationValue.js';

Expand All @@ -26,7 +26,7 @@ class RichEnumerationProperty<T extends EnumerationValue> extends Property<T> {

const options = merge( {}, providedOptions, {
validValues: value.enumeration!.values,
phetioType: Property.PropertyIO( RichEnumerationIO<T>( {
phetioType: Property.PropertyIO( EnumerationIO<T>( {
enumeration: value.enumeration!
} ) )
} );
Expand Down
1 change: 0 additions & 1 deletion tsconfig-module.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"include": [
"../axon/js/**/*",
"../tandem/js/**/*",
"../phet-core/js/EnumerationIO.js",
"../dot/js/Range.js",
"../dot/js/dot.js",
"../chipper/phet-types.d.ts",
Expand Down

0 comments on commit 66aee3f

Please sign in to comment.