This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Description
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?