Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rope-a-dope opened this issue Jul 13, 2024 · 2 comments

Comments

@Rope-a-dope
Copy link

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>[]'.

@DJ-no1
Copy link

DJ-no1 commented Jul 28, 2024

same issue

@devilra
Copy link

devilra commented Oct 24, 2024

How to solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants