Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

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.

attribute : MicrosoftDate

Date attribute represented in JSON as Microsoft date (represented in JSON as string /Date(timestamp))

attribute : Timestamp

Date attribute represented in JSON as UNIX timestamp (the result of date.getTime()).

attribute : Integer

Number attribute converting value to integer on assignment. Can be called as function.

attribute : Email

String attribute with email validation check.

attribute : IPAddress

String attribute with IP address validation check.

attribute : Url

String attribute with URL validation check.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.