Skip to content

<DataTable columns={columns} data={modifiedFiles} /> TyeScript warning #7

@Rope-a-dope

Description

@Rope-a-dope

How to get rid of this warning?

Type 'ColumnDef<{ _id: Id<"files">; _creationTime: number; shouldDelete?: boolean | undefined; name: string; type: "image" | "csv" | "pdf"; orgId: string; fileId: Id<"_storage">; userId: Id<"users">; } & { ...; }>[]' is not assignable to type 'ColumnDef<{ isFavorited: boolean; url: string | null; _id: Id<"files">; _creationTime: number; shouldDelete?: boolean | undefined; name: string; type: "image" | "csv" | "pdf"; orgId: string; fileId: Id<...>; userId: Id<...>; }, unknown>[]'.

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