DavidKim
DavidKim3y ago

Hi yall Loving Convex so far

Hi yall, Loving Convex so far. I came across a problem. Even after running npx convex codegen, the dataModel.d.ts looks like the following /** * The type of a document stored in Convex. */ export type Document = any;
4 Replies
DavidKim
DavidKimOP3y ago
Ah... I'm missing the schema.ts False alarm!
nipunn
nipunn3y ago
Cool! Glad you were able to figure it out. There's a comment up above that looks like this:
/**
* No `schema.ts` file found!
*
* This generated code has permissive types like `Document = any` because
* Convex doesn't know your schema. If you'd like more type safety, see
* https://docs.convex.dev/using/schemas for instructions on how to add a
* schema file.
*
* After you write a schema, rerun codegen with `npx convex codegen`.
*/

/**
* The names of all of your Convex tables.
*/
export type TableNames = string;

/**
* The type of a document stored in Convex.
*/
export type Document = any;
/**
* No `schema.ts` file found!
*
* This generated code has permissive types like `Document = any` because
* Convex doesn't know your schema. If you'd like more type safety, see
* https://docs.convex.dev/using/schemas for instructions on how to add a
* schema file.
*
* After you write a schema, rerun codegen with `npx convex codegen`.
*/

/**
* The names of all of your Convex tables.
*/
export type TableNames = string;

/**
* The type of a document stored in Convex.
*/
export type Document = any;
That contains an explanation
DavidKim
DavidKimOP3y ago
Thanks Nipunn !
jamwt
jamwt3y ago
@DavidKim thanks for trying convex! please keep the questions and feedback coming. in each release, a huge percentage of our feature adds and bug fixes are driven by developer feedback

Did you find this page helpful?