Skip to content

Commit 02e13d7

Browse files
author
Ivan Grekov
committed
upd to 1.1.0
1 parent 9453f8a commit 02e13d7

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v.1.1.0
4+
5+
* Fix bug for params and arguments defined via destruction
6+
37
## v.1.0.1
48

59
* small updates for `README.md`

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ function setParamTypeName(path) {
22
if (
33
path.parentPath.node.id.typeAnnotation &&
44
path.parentPath.node.id.typeAnnotation.typeAnnotation.typeParameters &&
5+
path.parentPath.node.id.typeAnnotation.typeAnnotation.typeParameters.params &&
6+
path.parentPath.node.id.typeAnnotation.typeAnnotation.typeParameters.params[0].typeName &&
57
path.parentPath.node.id.typeAnnotation.typeAnnotation.typeParameters.params[0].typeName.name
68
) {
79
return path.parentPath.node.id.typeAnnotation.typeAnnotation.typeParameters.params[0]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-react-function-component-props-handler",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "a custom react function components props handler for react-docgen. It allows you to parse props, which are typed as React.functionComponent<props> without rewriting your code",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)