mobiletto-orm-typedef
TypeScript icon, indicating that this package has built-in type declarations

2.4.5 • Public • Published

mobiletto-orm-typedef

This library provides mobiletto-independent code for mobiletto-orm, like MobilettoOrmTypeDef and various error types.

Front-end code need not depend on the underlying mobiletto and mobiletto-orm libraries, but can still make use of the type definitions that its server is using to validate and persist objects.

For example, to ensure that frontend form validation is synchronized with backend storage validation.

Source

Support and Funding

I would be sincerely grateful for any contribution via Patreon

Installation and usage

You can install mobiletto-orm-typedef via npm or yarn or pnpm

npm package

# install with npm
npm i mobiletto-orm-typedef

# install with yarn
yarn add mobiletto-orm-typedef

# install with pnpm
pnpm add mobiletto-orm-typedef

From source

To access the mobiletto-orm-typedef source:

# Clone source and install dependencies
git clone https://github.com/cobbzilla/mobiletto-orm-typedef.git
cd mobiletto-orm-typedef
pnpm install

Using Mobiletto ORM Type Definitions

See the mobiletto-orm documentation on Type Definitions

You can also check out the test suite for examples.

Package Sidebar

Install

npm i mobiletto-orm-typedef

Weekly Downloads

1

Version

2.4.5

License

Apache-2.0

Unpacked Size

183 kB

Total Files

55

Last publish

Collaborators

  • cobbzilla