NativeConverter
Hierarchy
- NativeConverter
Implements
- TypeConverter
- TypeConverter
Index
Methods
Object literals
Methods
convert
▸ convert(reflectedType
: tsruntimeTypes.ReflectedType): Any | Void | Never
Converts type to native type for validation.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
Returns converted reflected type as instance of pattern Any
for any
| Void
for void
| Never
for never
.
isConvertible
▸ isConvertible(reflectedType
: tsruntimeTypes.ReflectedType): boolean
Evaluates if provided reflected type is a native type.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
Returns: boolean
Returns true
if reflected type is a native type, else false
.
reflect
▸ reflect(reflectedType
: tsruntimeTypes.ReflectedType): Any | Void | Never
Reflects type to Pattern based equivalent of native type.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
Returns reflected type as instance of pattern Any
for any
| Void
for void
| Never
for never
.
Object literals
Static
MAPPINGS
▪ MAPPINGS: object
1
• 1: Any‹› = new Any()
11
• 11: Void‹› = new Void()
14
• 14: Never‹› = new Never()