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
Thank you, Matt, for your wonderful youtube videos!
Maybe I'm missing something, but it seems that solution no. 2 for exercise 08 does not "ensure that makeUser ALWAYS returns a User"(if the returned object was accidentally modified incorrectly)?
Each problem/solution will be accompanied by a video. This is here for a reason, but it's hard to grok just from reading.
The reason it's here is to demonstrate that you can handle this just via inference - you can meet the user contract just through returning all the proper types.
Thank you, Matt, for your wonderful youtube videos!
Maybe I'm missing something, but it seems that solution no. 2 for exercise 08 does not "ensure that makeUser ALWAYS returns a
User
"(if the returned object was accidentally modified incorrectly)?https://github.com/total-typescript/beginners-typescript/blob/f119964ad43dc2e5dfabd08e3aaf8f02c57981e9/src/08-function-return-type-annotations.solution.2.ts#L20-L33
The text was updated successfully, but these errors were encountered: