wonderful-panda/vue-tsx-support

componenyFactory.create, prop types always required

nikolayemrikh opened this issue · 0 comments

From readme:

Props type is infered from props definition automatically.
For example, props type will be { text: string, important?: boolean } in below code

props: {
    text: { type: String, required: true },
    important: Boolean,
  } as const

Type of important prop is boolean, not optional — undefined | boolean. Same if remove as const. Tried different cases — same result