-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename Emitter's argumentTypes
#212
Comments
Since this will be prevalent in client code, we may want to optimize it even further. Perhaps something like |
Feel free to edit inline Naming options for validating: Names for Emitter option:
|
Marking for a quick dev meeting issues. What should the option name be for the list of validator options objects that are used to validate each arg. Some examples are above. Here are my favorites.
|
|
@pixelzoom said this is a list of options, so how about Consensus: if we call them |
More 2/7/19 dev meeting notes: There was more discussion, but we didn't reach a final decision on this. One proposal was to move @zepumph Pointed out that isValidator.js would be doing something similar to PaintDef.js, but using a totally different approach. Why? |
Work done:
@pixelzoom will you please review. |
The answer to this TODO in ValidatorDef.js is probably "not right now". 47 // TODO: do we need a isValidatorDef function? See https://github.com/phetsims/axon/issues/212 |
Thank you so kindly for the quick review!
You are right, probably so. I'm going to remove that todo, but, especially as part of work done in #204, I think that we will need a predicate soon (something to return a boolean instead of assertions. |
from #182
Since creating
Validator
this name is not really accurate. Instead @samreid @chrisklus and @zepumph were thinking that it could beargumentValidators
orargumentValidatorOptions
.both of those are pretty lengthy, and we don't love the idea of writing those for every emitter in the future. Also ValidatorOptions is more of the proper type that Validator, since it is an array of the options, not type
{Validator}
Maybe
argValidatorOptions
isn't too verbose?The text was updated successfully, but these errors were encountered: