typebox-workbench
typebox-workbench copied to clipboard
Question: Is there a way to have the workbench generate TypeBox types with a certain naming convention?
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()
});