vuejs / vue-class-component

ES / TypeScript decorator for class-style Vue components.
MIT License
5.81k stars 429 forks source link

chore: use async in function example #506

Closed kabaluyot closed 3 years ago

kabaluyot commented 3 years ago

The example for the Post component has method fetchPost that returns a Promise type. The function must be in async-await.

ktsn commented 3 years ago

Thanks but you can also directly return a Promise object.