react-docgen-typescript
Advanced tools
Comparing version
@@ -301,2 +301,9 @@ "use strict"; | ||
}); | ||
it('should parse react stateless component with generic intersection props', function () { | ||
testUtils_1.check('StatelessIntersectionGenericProps', { | ||
StatelessIntersectionGenericProps: { | ||
myProp: { type: 'string' } | ||
} | ||
}); | ||
}); | ||
it('should parse react stateful component with intersection props', function () { | ||
@@ -303,0 +310,0 @@ testUtils_1.check('StatefulIntersectionProps', { |
@@ -311,2 +311,5 @@ "use strict"; | ||
var propertiesOfProps = propsType.getProperties(); | ||
if (!propertiesOfProps.length && propsType.isUnionOrIntersection()) { | ||
propertiesOfProps = propsType.types.reduce(function (acc, type) { return acc.concat(type.getProperties()); }, []); | ||
} | ||
var result = {}; | ||
@@ -313,0 +316,0 @@ propertiesOfProps.forEach(function (prop) { |
{ | ||
"name": "react-docgen-typescript", | ||
"version": "1.16.2", | ||
"version": "1.16.3", | ||
"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
157981
0.56%2087
0.48%