Generates TypeScript code from RONIN models.
npm install shiro-codegen


This package generates TypeScript code based on RONIN models.
typescript
import { generate } from 'shiro-codegen';
import { model, string } from 'shiro-orm/schema';const User = model({
slug: 'user',
pluralSlug: 'users',
fields: {
name: string(),
email: string({ required: true }),
},
});
const generateCode = generate([User]);
// ^? string
`Testing
Use the following command to run the test suite:
`
bun test
``