Zod and Angular template types #560
Unanswered
ivan-janssens-de-varebeke-lemon
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Seems to work as expected on the TypeScript playground. What version of TypeScript are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have encountered an issue.
I use Zod in combination with angular (12).
My code was not compiling due to an incorrect type.
Here is a small simplified example of the used code:
In the template I use an
*ngForloop. In this loop the type is not correctly passed on as can be seen in following screenshots.When changing the testObject to:
the type is correctly handled in the template.
Can somebody explain why this is happening?
Beta Was this translation helpful? Give feedback.
All reactions