-
Notifications
You must be signed in to change notification settings - Fork 103
Types
This page explains the types of JSX.
- boolean
- number
- string
- (int)
Primitive types are non-nullable. 'Int' exists as a type, but would be equal to or slower than using 'number' in some cases (the definition of 'int' is: a number with fraction part == 0 (if it is not NaN nor Infinity), guaranteed to hold a 'number' without fractional part between -231 to 231-1).
- Nullable.<boolean>
- Nullable.<number>
- Nullable.<string>
- (Nullable.<int>)
They are returned by [] operators of Array.<primitive_type> and Map.<primitive_type>.
The types below are the built-in object types of JSX. Objects types are nullable.
- Object
- Array.<T>
- Map.<T>
- Boolean
- Number
- String
- Function
- JSX
- variant
A variant can hold any type of data (including null). To use the data, explicit cast to other data types is necessary.
Users may define a new class by extending the Object class, or by declaring an interface or a mixin. See Class, Interface, and Mixin.