|
|
|
|
|
by js2
597 days ago
|
|
> It's not like python and typescript where you declare your input data to be one thing, and then receive something else In Python that's likely to lead to a runtime TypeError, not so much in TS since at runtime it's JS and JS is weakly typed. Besides, Python has Pydantic which everyone should really should be using. :-) |
|
Pydantic only helps (AFAIK) when you're letting it help, and you actually use the correct type information. It's not difficult to use, but it's optional, and can be faulty.