mobiletto-orm-typedef is a shared type definition system for mobiletto-orm, providing `MobilettoOrmTypeDef` and error types independent of the underlying mobiletto and mobiletto-orm libraries. Version 2.4.5 is the current stable release, updated regularly with patches. It enables frontend form validation synchronized with backend storage validation, without requiring frontend code to depend on mobiletto or mobiletto-orm. Key differentiator: decouples type definitions from ORM logic, allowing lightweight frontend integration.
npm install mobiletto-orm-typedefNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using MobilettoOrmTypeDef to define a user schema and validate an object against it.
Switch to ESM imports: `import { MobilettoOrmTypeDef } from 'mobiletto-orm-typedef'`.Use named export: `import { MobilettoOrmTypeDef } from 'mobiletto-orm-typedef'`.Use RegExp literals (e.g., `/pattern/`) or `new RegExp('escaped pattern')`.Specify field order explicitly if required by backend; use ordered objects.
Ensure field type is 'number' for numeric constraints.
Set `"type": "module"` in package.json or use `.mjs` extension for ESM files.
Use `import { MobilettoOrmTypeDef } from 'mobiletto-orm-typedef'` instead of default import.Ensure all required fields are of the correct type before validation.
No dependency data recorded yet.