Skip to content

TypeScript enables strict mode, and the interface includes an optional never type; defineProps returns the never type. #14056

Description

@jevin98

Vue version

3.5.22

Link to minimal reproduction

https://play.vuejs.org/#eNp9Uk1v1DAQ/SuDL1ukkhVdemBJFwFqRTlABYheLKE0mWTdOrZlj7crRfnvHTv92KrVXiz5zZvnec8ziC/OFZuIYinKUHvlCAJSdKAr051IQUGKlTSqd9YTDOCxhRFab3uYcdtMGi4aQt9WNcKlorWNdFY1eMaUC29dgEEagPYeOjcNbj8vweAGvTTj8/6pAbeEpgl71CoWiP1VVviUJGprAoHLjBNosFUGM7/M5+rg7ROrDx1z2MjB7DtqbeHSet28mTGlnE8ZsGO+EPZOV4R8AyjX71fDMD1RPHMD41jOuZpZyrhIsHnX2wY158ePSQFzLpbzHT1xyMnyOK3qiutgDcefjUlR294pjf6XI8XjSrGcLKdaxdPe/sgY+YiHD3i9xvrmFfw6bBMmxYXHgH6DUjzWAnlV04sWqnyHGZbi9M9P/oqdHjYVNYvsKf7GYHVMo0+0r9E07GaHl02c531SpvsbTtNvhwevaZjEHDNfCt6xb3sSeRp3UXzIfbwRHO5/3q6kybkuiuPi6ChhFP49osfFx2IhxjsJbANb

Steps to reproduce

What is expected?

Image

What is actually happening?

Image Image

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (20) x64 Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
    Memory: 9.39 GB / 31.84 GB
  Binaries:
    Node: 23.11.1 - C:\nvm4w\nodejs\node.EXE
    npm: 10.9.2 - C:\nvm4w\nodejs\npm.CMD
    pnpm: 10.19.0 - C:\nvm4w\nodejs\pnpm.CMD
  Browsers:
    Chrome: 141.0.7390.108
    Edge: Chromium (141.0.3537.92)
    Internet Explorer: 11.0.19041.5794

Any additional comments?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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