API Docs for:
Show:

TypeInfo Class

type of model's property

Item Index

Methods

Properties

Methods

createEnumType

(
  • values
  • [idPropName]
)
TypeInfo private static

get TypeInfo as MODEL

Parameters:

  • values Array(String)
  • [idPropName] Object | String optional

    by default: xxxYyyId when modelName is xxx-yyy

Returns:

TypeInfo:

type

createModelType

(
  • modelName
  • [idPropName]
)
TypeInfo private static

get TypeInfo as MODEL

Parameters:

  • modelName String
  • [idPropName] Options | String optional

    by default: xxxYyyId when modelName is xxx-yyy

Returns:

TypeInfo:

type

createType

(
  • typeName
)
Function(TypeInfo) private static

Creates a function which returns TypeInfo

Parameters:

  • typeName String

Returns:

Function(TypeInfo):

Properties

default

Any

default value

omit

Boolean

flag not to include this prop after 'toPlainObject()'

TYPES

Unknown static

TYPES defines various data type, including model and array of models

key: typeName (String) value: type TypeInfo|Function(TypeInfo)