facebook / facebook/jscodeshift

Find does not traverse ObjectPattern's TypeAnnotation

Abierto
#175 0 comentarios 0 reacciones 0 asignados Ver en GitHub
upstream
Lenguaje dominante
JavaScript
Estrellas
10k
Forks
498
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.