Skip to content

Commit

Permalink
prefer IO Type to TypeIO, phetsims/tandem#219
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 21, 2020
1 parent d599826 commit 574383d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/Action.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Action extends PhetioObject {
// phet-io - see PhetioObject.js for doc
tandem: Tandem.OPTIONAL,

// {function(IOType[]):IOType} - The non parameterized TypeIO. Override this to create a subtype of ActionIO as
// {function(IOType[]):IOType} - The non parameterized IOType. Override this to create a subtype of ActionIO as
// the phetioType instead of a parameterized ActionIO Type.
phetioOuterType: Action.ActionIO,
phetioState: false,
Expand Down
2 changes: 1 addition & 1 deletion js/Emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const cache = {};
*
* Providing validators to instrumented Emitters:
* Instrumented Emitters should have their `validators` for each argument passed via EmitterIO (the phetioType).
* To provide validators, there are two methods. First, by default each TypeIO has its own
* To provide validators, there are two methods. First, by default each IOType has its own
* validator that will be used. So specifying an argument object like `{ type: NumberIO }` will automatically use
* `NumberIO.validator` as the validator. This can be overridden with the `validator` key (second option), like
* { type: NumberIO, validator: { isValidValue: v=> typeof v === 'number' && v < 5 } }`
Expand Down
2 changes: 1 addition & 1 deletion js/ValidatorDef.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const VALIDATOR_KEYS = [
// valueType is `Array`.
'arrayElementType',

// {function(new: IOType)} - A TypeIO used to specify the public typing for PhET-iO. Each TypeIO must have a
// {IOType} - A IOType used to specify the public typing for PhET-iO. Each IOType must have a
// `validator` key specified that can be used for validation. See IOType for an example.
'phetioType'
];
Expand Down

0 comments on commit 574383d

Please sign in to comment.