wrsh07
wrsh0715mo ago

When is generated dataModel.d.ts typed specifically?

When I look in my generated file, I see this:
/**
* The type of a document stored in Convex.
*/
export type Doc = any;
/**
* The type of a document stored in Convex.
*/
export type Doc = any;
I didn't realize I needed to rename the _schema.ts file to schema.ts -- it might be helpful to add a comment to the generated file where the types would be more specific if there were a schema.ts file.
1 Reply
ballingt
ballingt15mo ago
We agree, check out that file: two lines up there's exactly this comment. But this is helpful to hear, there could be a short version in this function comment.

Did you find this page helpful?