Replies: 1 comment 5 replies
-
|
There are still good reasons to use
Spread syntax is preferred if you want maximum TypeScript performance or need to control the strictness level of the resulting schema at a glance. But Let me know if this answers your question—if so, feel free to close the issue! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Going through the migration guide and eventually found myself reading about
.extend()and the alternative spread syntax. It lists some advantages of using the spread syntax, but no disadvantages or advantages of using.extend().Are there any advantages of using
.extend()? If the spread syntax is better and more efficient in every way, is there a reason to use it at all? Should it basically just be mared as deprecated?Beta Was this translation helpful? Give feedback.
All reactions