strothj / babel-plugin-react-docgen-typescript

Babel Plugin to generate docgen data from React components written in TypeScript.
12 stars 4 forks source link

feat: support defaultValue #2

Closed yehq closed 5 years ago

yehq commented 5 years ago

I want to get defaultValue

{
    "description": "",
    "displayName": "Box",
    "methods": [],
    "props": {
        "noPadding": {
            "defaultValue": {
                "value": "false"
            },
            "description": "是否有内边距",
            "name": "noPadding",
            "required": false,
            "type": {
                "name": "boolean"
            }
        },
    }
} 
strothj commented 5 years ago

Hello,

Thanks again for the pull request. I'm currently using the package https://github.com/strothj/react-docgen-typescript-loader so I don't really maintain this version myself.

I've added you as a maintainer to this project. Send me your NPM username and I'll square you away with publish access for the package as well.

yehq commented 5 years ago

Hello, Thanks for your trust. My NPM username is yehq.

strothj commented 5 years ago

Okay good to go