How does type safety work with this package? #193
-
I am just wondering how it works, because after I have everything setup in my actions file, it seems I can enter whatever I want in the client component when calling the action:
I get no warnings when putting a number in the title, for example, when that is not what the schema defines:
Am I wrong in assuming that the type safety would extend to calling the function and not just in the action file, where it seems to work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I should add, I only mean when calling the function and defining its inputs, I don't mean when I run the code, all the validation still works. |
Beta Was this translation helpful? Give feedback.
-
Well it sure isn't the intended behavior: Are you perhaps using TypeScript 5.5? If this is the case, please check out this issue and comment: |
Beta Was this translation helpful? Give feedback.
Well it sure isn't the intended behavior:
Are you perhaps using TypeScript 5.5? If this is the case, please check out this issue and comment: