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
interfaceProps{/** * The name to greet * * @defaultValue 'something' */name: string;}/** * Hello world component */constMyComponent=(props: Props)=>{return<div/>;
}
returns:
[
{
"description": "Hello world component",
"displayName": "MyComponent",
"methods": [],
"props": {
"name": {
"required": true,
"tsType": {
"name": "string"
},
"description": "The name to greet\n\n@defaultValue 'something'"
}
}
}
]
I think the defaultValue property is missing and should appear in the result, and part of the description "@DefaultValue 'something'" should be removed.
[
{
"description": "Hello world component",
"displayName": "MyComponent",
"methods": [],
"props": {
"name": {
"required": true,
"tsType": {
"name": "string"
},
"description": "The name to greet",
"defaultValue": {
"value": "'something'",
"computed": false
}
}
}
}
]
The text was updated successfully, but these errors were encountered:
The following code tested in the playgroud https://react-docgen.dev/playground
returns:
I think the defaultValue property is missing and should appear in the result, and part of the description "@DefaultValue 'something'" should be removed.
The text was updated successfully, but these errors were encountered: