Vignesh GuptaV
Convex Community2y ago
12 replies
Vignesh Gupta

Loosing Type safety for 1 table only in convex with Turporepo (NextJS)

Hey there, I've recently migrated to turbo repo and trying to figure things using https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo. But for one of the route (or we can say table). I'm having some issues with work_item.

On hover Expected is to get something like this on hover:
  list: FunctionReference<"query", "public", {
        projectId: Id<"projects">;
    }, {
        _id: Id<"feedbacks">;
        _creationTime: number;
        status: "open" | "reviewed" | "closed";
        type: "documentation" | ... 4 more ... | "other";
        projectId: Id<...>;
        content: string;
        senderName: string;
        senderEmail: string;
    }[], string | undefined>;
    create: FunctionReference<...>;
    update: FunctionReference<...>;
    remove: FunctionReference<...>;
}


instead I'm getting:
(property) work_item: {
    [x: string]: any;
}
image.png
image.png
Was this page helpful?