Skip to content

Why not use ListItem[] type for parsedList? #2

@zzh315

Description

@zzh315

https://github.com/gitdagray/typescript-course/blob/76adc7a5555136bddf803ffe138cdc9cf149bf71/lesson11/src/model/FullList.ts#L26C1-L26C9

// why not this:
const parsedList: ListItem[] = JSON.parse(storedList);
//instead of this
const parsedList: { _id: string; _item: string; _checked: boolean }[] =JSON.parse(storedList);

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