Closed harveysanders closed 5 months ago
Hello @harveysanders,
Pardon me for answering almost a year later, I agree, and love to add support for null
along with void 0
/undefined
feel free so send a PR
@dr-dimitru no worries! I just submitted #106 for your consideration
Published as v3.10.1
@harveysanders thank you for contribution 🙏
Hi! Just a suggestion: Most of the
FlowRouter
methods have optional params.With these types, one needs to pass
undefined
or an empty placeholder value.In my opinion,
undefined
represents values that are not yet set in the runtime, whereas if you explicitly need to set a value to a non-value,null
should be used. With that said, I think it may make sense to use union types withnull
instead of the question mark so devs call the methods like this:If you agree, I could submit a PR at some point.
Thanks for your time and work on this project!