Types (dw::core::Types)
This module enables you to perform type introspection.
To use this module, you must import it to your DataWeave code, for example,
by adding the line import * from dw::core::Types
to the header of your
DataWeave script.
Introduced in DataWeave version 2.3.0.
Functions
Name | Description |
---|---|
Returns the type of the given array. This function fails if the input is not an Array type. |
|
Returns an the base type of the given type. |
|
Returns the list of parameters from the given function type. This function fails if the provided type is not a Function type. |
|
Returns the type of a function’s return type. This function fails if the input type is not a Function type. |
|
Returns an array of all the types that define a given Intersection type. This function fails if the input is not an Intersection type. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns the value of an input belongs to the Literal type. |
|
Returns metadata that is attached to the given type. |
|
Returns the name of the input type. |
|
Returns the array of fields from the given Object type. This function fails if the type is not an Object type. |
|
Returns an array of all the types that define a given Union type. This function fails if the input is not a Union type. |