README
Custom attribute metatypes
"Attribute metatype" is the Type-R attribute type descriptor with metadata attached.
Metatype is created by assigning the result of type( T )
expression to some variable.
The following attribute types are available from @type-r/ext-types
package.
: MicrosoftDate attribute
Date
attribute represented in JSON as Microsoft date (represented in JSON as string /Date(timestamp)
)
: Timestamp attribute
Date
attribute represented in JSON as UNIX timestamp (the result of date.getTime()
).
: Integer attribute
Number
attribute converting value to integer on assignment. Can be called as function.
: Email attribute
String
attribute with email validation check.
: IPAddress attribute
String
attribute with IP address validation check.
: Url attribute
String
attribute with URL validation check.