Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/corePublic

defineComponent (function syntax): optional props inferred as required #13964

Open
@zfeher

Description

@zfeher

Vue version

3.5.22

Link to minimal reproduction

minimal repro

Steps to reproduce

1, openminimal repo and see the reported error in App.vue at<Comp> usage. It says p1, p2 and p3 required props are missing.

2, openComp.ts see Comp definition where p1, p2 and p3 are defined as optional props. Hoovering overprops insetup func also shows them incorrectly as required.

What is expected?

p1, p2 and p3 props of Comp correctly inferred as optional props like what happens with the similar CompB (options syntax).

What is actually happening?

p1, p2, and p3 props of Comp are inferred incorrectly as required props.

System Info

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp