typebox-workbench icon indicating copy to clipboard operation
typebox-workbench copied to clipboard

Question: Is there a way to have the workbench generate TypeBox types with a certain naming convention?

Open joshowens-basis opened this issue 7 months ago • 0 comments

IE, I'd love to be able to automatically have the workbench generate TypeBox types with a <Your-Type-Here>Schema naming convention, so that

type User = {
  id: number;
  firstName: string;
  lastName: string;
};

would become:

type User = Static<typeof UserSchema>
const UserSchema = Type.Object({
  id: Type.Number(),
  firstName: Type.String(),
  lastName: Type.String()
});

joshowens-basis avatar Jun 06 '25 20:06 joshowens-basis