Skip to content

Commit

Permalink
check state is valid based on parameterType that serialized it, Utter…
Browse files Browse the repository at this point in the history
…ance.toStateObject to use IOType to serialize, phetsims/center-and-variability#113 phetsims/tambo#160
  • Loading branch information
zepumph committed Mar 29, 2022
1 parent 38f0f33 commit d85db29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Utterance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Utterance {
*/
toStateObject(): SerializedUtterance {
return {
alert: this.getAlertText()
alert: NullableIO( OrIO( [ StringIO, NumberIO ] ) ).toStateObject( this.getAlertText() )
};
}

Expand Down

0 comments on commit d85db29

Please sign in to comment.