RFC: @defaultValue to indicate a default value
See original GitHub issueIn API Extractor issue #720 @RueDeRennes asked about supporting @default
to indicate a default value.
Some questions:
- Should this be part of core TSDoc?
- Should the tag be
@default
or@defaultValue
? - Should it apply only to properties and fields? What about function parameters?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:12
- Comments:10
Top Results From Across the Web
defaultValue
This block tag is used to document the default value for a field or property, if a value is not assigned explicitly. This...
Read more >set multiple default values to RFC
You can only set one default value to one parameter. The default value is what will be put in the parameter if a...
Read more >DefaultValue Property
Specifies a String value that is automatically entered in a field when a new record is created. For example, in an Addresses table...
Read more >NetSuite Applications Suite - Field.defaultValue
addField({ id : 'custpage_textfield', type : serverWidget.FieldType.TEXT, label : 'Text' }); field.defaultValue = 'Insert Text Here.'; .
Read more >With-defaults Capability for NETCONF RFC 6243
This document defines a capability-based extension to the NETCONF protocol that allows the NETCONF client to identify how defaults are processed by the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Based on the discussion with office-ui-fabric-react, we’re thinking
@default
tag would have the following spec:@default
should NOT be applied to a function or class declaration.Usage example:
@sindresorhus After thinking about this question, I don’t think
@defaultValue
is the right tag for this. I opened a separate GitHub issue to discuss your question: https://github.com/Microsoft/tsdoc/issues/151