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

Implementation of placeToString #24

@chrispiccaro18

Description

@chrispiccaro18

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions