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
Thanks for making this tutorial! I have a clarification question on the implementation of placeToString regarding the property, place, being optional. When following along I'm getting an error regarding a Todo that doesn't have the optional place prop: Argument of type '{ custom: string; } | "home" | "work" | undefined' is not assignable to parameter of type 'Place'. Type 'undefined' is not assignable to type 'Place'.
Would we need to add that Place can also be undefined? or when using the function, placeToString, would you first filter out the todos that don't have place?
The text was updated successfully, but these errors were encountered:
Thanks for making this tutorial! I have a clarification question on the implementation of
placeToString
regarding the property, place, being optional. When following along I'm getting an error regarding a Todo that doesn't have the optional place prop:Argument of type '{ custom: string; } | "home" | "work" | undefined' is not assignable to parameter of type 'Place'. Type 'undefined' is not assignable to type 'Place'.
Would we need to add that Place can also be
undefined
? or when using the function,placeToString
, would you first filter out the todos that don't have place?The text was updated successfully, but these errors were encountered: