-
Notifications
You must be signed in to change notification settings - Fork 486
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
Param Default Values #737
Comments
Hi, Could you describe what the intended result is? Is the |
Hi, I was expecting something more like the example on your website (http://documentation.js.org/html-example/#popup/sethtml), but maybe that is a different / older theme? I suppose this mostly comes down to the theme. I modified the example HTML on your site to show how I would like it to be. http://i.imgur.com/J8ueB3B.png But yeah, the question marks would be the focus for this issue. Kinda makes it confusing, wasn't sure if it was something I was doing wrong, or intended behavior, as I've never used a tool to do documentation before. Thanks |
We are using Flow's type syntax and the question mark is for types that can be null or undefined. There is certainly room for improvements here. Having the question mark when we have the equals is not really right. |
Got it. Okay, yeah, so...
Produces
But that isn't really what we want - what we want, both out of the doctrine tag and out of inference, is more like
Right? I can start by implementing this on the inference side, and we could massage Doctrine output to produce this, and then it'd be an upstream change to doctrine. |
I'm torn about this. From a type annotation POV the type is just number but from a documentation POV the type is number | undefined since the casket can use either. |
Hi,
I have methods that have parameters with default values that don't get displayed correctly. Maybe I am doing something wrong.
Here is a screen shot of how it looks: http://i.imgur.com/nIkcz6b.png
The text was updated successfully, but these errors were encountered: