You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally: works the same with both syntaxes.
If not: a warning that methods are not a supported way to type props.
What is actually happening?
Nothing happens: nothing is bound at runtime and no message is displayed during compilation.
My guess is that the ok() method is totally ignored by the compiler, which probably only considers fields.
This then leads to the prop being non existent.
The text was updated successfully, but these errors were encountered:
Version
3.0.5
Steps to reproduce
Playing with TS script setup, I did this:
And it works fine.
But now change to a method instead of a field (in practice the same thing, but more concise):
And now it doesn't work anymore.
What is expected?
Ideally: works the same with both syntaxes.
If not: a warning that methods are not a supported way to type props.
What is actually happening?
Nothing happens: nothing is bound at runtime and no message is displayed during compilation.
My guess is that the
ok()
method is totally ignored by the compiler, which probably only considers fields.This then leads to the prop being non existent.
The text was updated successfully, but these errors were encountered: