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
It would be fantastic to support JSDoc @description tags, mapped to Zod's .describe()
Input
/** * @description Extract information about a single entity */exportinterfaceProperties{/** * @description The name of this entity */name: string;location: string;}
Output
// Generated by ts-to-zodimport{z}from"zod";exportconstpropertiesSchema=z.object({name: z.string().describe("The name of this entity"),location: z.string(),}).describe("Extract information about a single entity")
The text was updated successfully, but these errors were encountered:
grrowl
added a commit
to grrowl/ts-to-zod
that referenced
this issue
Jan 7, 2024
Feature description
It would be fantastic to support JSDoc
@description
tags, mapped to Zod's.describe()
Input
Output
The text was updated successfully, but these errors were encountered: