Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The type of props will be discard when using typed-macros #7111

Closed
sxzz opened this issue Nov 12, 2022 · 0 comments · Fixed by #7112
Closed

The type of props will be discard when using typed-macros #7111

sxzz opened this issue Nov 12, 2022 · 0 comments · Fixed by #7112

Comments

@sxzz
Copy link
Member

sxzz commented Nov 12, 2022

Vue version

3.2.45

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9kcFugzAMQH/FyqVUKuGOgGnSPmAfkAsDQ6kgiZxADyj/PgdY1W1Sb7Fjv+c4q3i3Vi4zilwUrqHBehhr3ZfeVUo3RjsPLXb1PHoHJazQ6RySc1nBGiAoXWR7ExdzcAAc+tk+YYbJGvLcTNhBgI7MBCd2nmLT7rBkbBTcB3/9OHwJiweNn/GqWJUGlr9FO7B+MUOrdKiS84XBUsrHlOH8gzUjytH0yQbn7O9hPU52rD1yVGSPQFzEPm461VbenNG8mU2ujgunRA5bJub4GTFW4uq9dXmWua6J+7w5aajP+CRp1n6YUKKb0i8yd4fEYCUuT4yMkwtSSqhbJKRXzD+l/7gRy18TRPgGe2Snhw==

Steps to reproduce

  • Open the SFC Playground
  • Switch prod and dev mode

What is expected?

Under both prod and dev mode, props.fn is a function

What is actually happening?

In prod mode, props.fn is undefined, and in dev mode, props.fn is a function

System Info

No response

Any additional comments?

I'll make a PR to fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant