Vue News Thailand - 📚 Tips: Props Validation Props นั้นเป็นค่าที่เรารับภายใน Component ตามที่เราประกาศรับ จริง ๆ เราสามารถ Validate ค่าตอนที่รับมาได้ด้วยนะ 😎 เราสามารถประกาศ Type หรือประเภทของตัวแปรที่รับมาได้ อย่าง String, Number, Boolean และ Type ...
![Prop validator with regular function (not arrow) breaks props inference in setup · Issue #152 · vuejs/composition-api · GitHub Prop validator with regular function (not arrow) breaks props inference in setup · Issue #152 · vuejs/composition-api · GitHub](https://user-images.githubusercontent.com/6769037/76684688-fdcd7380-6648-11ea-8a5f-5afab8a15913.png)