Subscribe on changes!

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

avatar
Nov 12th 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.