You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see 165 occurrences of regex Property.<.*\|null in PhET code, so this is a common scenario.
Can validator.js and Property APIs support a simple way of specifying that null is a valid value? Something that makes the above boilerplate unnecessary?
The text was updated successfully, but these errors were encountered:
If
null
is a valid value for a Property, then using type-specific Properties is out of the question, and I have to resort to this boilerplate:I see 165 occurrences of regex
Property.<.*\|null
in PhET code, so this is a common scenario.Can validator.js and Property APIs support a simple way of specifying that
null
is a valid value? Something that makes the above boilerplate unnecessary?The text was updated successfully, but these errors were encountered: