Subscribe on changes!

How to denine Array<string> on define props

avatar
Jan 27th 2022

Version

3.2.29

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  • Create props with defineProps
  • Define type of prop as Array

What is expected?

Should define prop type as Array of string

What is actually happening?

throws an error:

The expected type comes from property 'theWord' which is declared here on type 'ComponentObjectPropsOptions'


Can not define prop type as Array with defineProps.

avatar
Jan 27th 2022

Hello @OrhanOzkercin

Thank your for your interest in this project.

However, your issue is a usage/support question, and the issue tracker is reserved exclusively for bug reports and feature requests (as outlined in our Contributing Guide).

We encourage you to ask it on our Discord chat or Stack Overflowand are happy to help you out there.