A dev-dependency tool to generate TypeScript types, Yup validators, Nuxt 3 server APIs, API client services, Pinia stores, and Vue 3 admin components based on mobiletto-orm-typedef definitions. Current stable version 2.3.42. Released actively (last update within months). Differentiator: automatically produces full-stack artifacts from a single ORM type definition, reducing boilerplate across frontend and backend.
npm install mobiletto-orm-typedef-genNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and run all major generators on a sample typedef, outputting files to specific directories.
Use import syntax instead of require. Ensure your project uses ESM (package.json type: module) or a bundler that can import ESM.
Update import names to the new symbols.
Ensure your typedef object is properly defined and exported from 'mobiletto-orm-typedef' before passing to generators.
Use fs.mkdirSync(outputDir, { recursive: true }) before calling generators.Run 'npm install --save-dev mobiletto-orm-typedef-gen' (or yarn/pnpm equivalent).
Switch to import syntax or add 'type': 'module' to your package.json.
Use { generateTypescriptTypes } in import statement, not default import.Check that you correctly imported the typedef and passed it as first argument.
Create the output directory before calling the generator, e.g., with fs.mkdirSync(outputDir, { recursive: true }).