djbalinD
Convex Community2y ago
1 reply
djbalin

Strange Doc type/inference: "[x: string]: any;, _id: Id<string>;"

Hi, we've been running into this strange problem a few different places in our repo by now and can't quite seem to figure out what's going on.
Basically, sometimes, the type returned by a Doc<TableName> returns this strange thing:
{
    [x: string]: any;
    _id: Id<string>;
} 


We're in an expo/Next monorepo, and seems to work fine when inside our backend package (where Convex is), but not when we are in our native/web packages (even though we just import Doc from the generated files)
Was this page helpful?