You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When using Drizzle's type inference ($inferSelect), JSDoc comments from the schema definition are lost in the inferred types. This makes it harder to maintain self-documenting code as the documentation needs to be duplicated or is lost entirely when working with the inferred types.
Current Behavior
// schema.tsexportconstmyTable=pgTable('my_table',{/** The value of the style property */value: text('value'),});// model.tsexporttypeMyTable=typeofmyTable.$inferSelect;// The resulting type loses all JSDoc comments:// type MyTable = {// value: string | null;// }
I'd hope we can infer the JSDoc or have an alternative way to provide generation of JSDoc.
The text was updated successfully, but these errors were encountered:
Feature hasn't been suggested before.
Describe the enhancement you want to request
When using Drizzle's type inference (
$inferSelect
), JSDoc comments from the schema definition are lost in the inferred types. This makes it harder to maintain self-documenting code as the documentation needs to be duplicated or is lost entirely when working with the inferred types.Current Behavior
I'd hope we can infer the JSDoc or have an alternative way to provide generation of JSDoc.
The text was updated successfully, but these errors were encountered: