c318667e6136dd945d818fc6bdf9bec0f9f05f01
typescript/Parameter 'x' implicitly has an 'any' type.Vetur(7006).md
| ... | ... | @@ -3,10 +3,10 @@ |
| 3 | 3 | nuxtjsで、 |
| 4 | 4 | ```typescript |
| 5 | 5 | async created() { |
| 6 | -const response = await this.$axios.get('/api') |
|
| 7 | -if (response) { |
|
| 8 | - this.all_name = response.data.map((x) => x.name) |
|
| 9 | -} |
|
| 6 | + const response = await this.$axios.get('/api') |
|
| 7 | + if (response) { |
|
| 8 | + this.all_name = response.data.map((x) => x.name) |
|
| 9 | + } |
|
| 10 | 10 | }, |
| 11 | 11 | ``` |
| 12 | 12 | で`(x)`にこのエラーが出た。 |