facebook / facebook/jscodeshift
Find does not traverse ObjectPattern's TypeAnnotation
Ouverte
upstream
- Langage dominant
- JavaScript
- Étoiles
- 10k
- Forks
- 498
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
This probably has the same root cause as issue #34 , but I thought I'd flag it just in case:
`find` seems to have trouble searching through type annotations of object patterns. It can't find the identifier T, nor the `TypeAnnotation` here:
```
function f({x}: {x: T}) {}
```
But it can find both without the `ObjectPattern`:
```
function f(obj: {x: T}) {}
```
Example: http://astexplorer.net/#/tHx2YYTvvd/1
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.