package
Generates TypeScript code from RONIN models.
npm install blade-codegenGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
This package generates TypeScript code based on RONIN models.
import { generate } from 'blade-codegen';
import { model, string } from 'blade-client/schema';
const User = model({
slug: 'user',
pluralSlug: 'users',
fields: {
name: string(),
email: string({ required: true }),
},
});
const generateCode = generate([User]);
// ^? stringUse the following command to run the test suite:
bun testEstimated unpacked size across 22 packages.
534.2 MB
Includes dependencies.