TypeInfo Class
type of model's property
Item Index
Methods
- createEnumType static
- createModelType static
- createType static
Methods
createEnumType
(
TypeInfo
private
static
-
values
-
[idPropName]
get TypeInfo as MODEL
Parameters:
-
values
Array(String) -
[idPropName]
Object | String optionalby default: xxxYyyId when modelName is xxx-yyy
Returns:
TypeInfo:
type
createModelType
(
TypeInfo
private
static
-
modelName
-
[idPropName]
get TypeInfo as MODEL
Parameters:
-
modelName
String -
[idPropName]
Options | String optionalby default: xxxYyyId when modelName is xxx-yyy
Returns:
TypeInfo:
type
createType
(
Function(TypeInfo)
private
static
-
typeName
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)