You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-docgen-typescript

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-docgen-typescript - npm Package Compare versions

Comparing version

to
1.14.1

5

lib/__tests__/parser.js

@@ -379,3 +379,3 @@ "use strict";

description: 'regularProp description',
required: true,
required: false,
type: 'string'

@@ -398,2 +398,5 @@ },

});
it('supports typescript 3.0 style defaulted props', function () {
testUtils_1.check('StatelessWithDefaultPropsTypescript3', expectation);
});
});

@@ -400,0 +403,0 @@ it('should parse functional component component defined as function', function () {

@@ -314,4 +314,5 @@ "use strict";

var jsDocComment = _this.findDocComment(prop);
var hasCodeBasedDefault = defaultProps[propName] !== undefined;
var defaultValue = null;
if (defaultProps[propName] !== undefined) {
if (hasCodeBasedDefault) {
defaultValue = { value: defaultProps[propName] };

@@ -328,3 +329,3 @@ }

parent: parent,
required: !isOptional,
required: !isOptional && !hasCodeBasedDefault,
type: _this.getDocgenType(propType)

@@ -331,0 +332,0 @@ };

2

package.json
{
"name": "react-docgen-typescript",
"version": "1.14.0",
"version": "1.14.1",
"description": "",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/styleguidist/react-docgen-typescript/",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet