Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ModelOptions

example
var modelOptions = {
    path: './implementations_all/models',
    models: {
        user: {addModuleExport: 'mmir.User'},
        calendarModel: {addModuleExport: 'mmir.CalendarModel'}
    }
};

Hierarchy

Index

Properties

Optional addModuleExport

addModuleExport: boolean | string

for automatically converting old-style implementations that are no CommonJS or AMD modules: if true, explicitly exports the implementation resource, i.e. adds something like

module.exports. = ;

to the implementation source/module.

If string, the specified string will be used for the export.

Optional exclude

exclude: boolean

if true, the corresponding implementation will be excluded (when parsing path)

Optional models

models: boolean | {}

Optional path

path: string

file path for searching (data) model implementation files: path/<model ID>.js

Generated using TypeDoc