moot-model

0.0.2 • Public • Published

moot-model

Model objects for the moot demo project.

There are currently three types of model objects:

  • value: A static value which can be referenced anywhere within your application. Use it to share lists of values across modules and services, such as static lists of words or numbers.
  • schema: An object with defined properties, and validation functions for those properties.
  • fragment: Sub-resources on schemas.

using it

Within your moot-app, or within the moot-client, you might reference one of these things like this:

import game from 'moot-model/schema/game'

console.log(game.type) // => 'GAME'

license

The moot project, this repo, and everything within this repo, is published and released under the Very Open License.

/moot-model/

    Package Sidebar

    Install

    npm i moot-model

    Weekly Downloads

    6

    Version

    0.0.2

    License

    VOL

    Last publish

    Collaborators

    • saibotsivad