Types (dw::core::Types) Flashcards
arrayItem
Returns the type of the given array. This function fails if the input is not an Array type.
baseTypeOf
Returns an the base type of the given type.
functionParamTypes
Returns the list of parameters from the given function type. This function fails if the provided type is not a Function type.
functionReturnType
Returns the type of a function’s return type. This function fails if the input type is not a Function type.
intersectionItems
Returns an array of all the types that define a given Intersection type. This function fails if the input is not an Intersection type.
isAnyType
Returns true if the input is the Any type.
isArrayType
Returns true if the input type is the Array type.
isBinaryType
Returns true if the input is the Binary type.
isBooleanType
Returns true if the input is the Boolean type.
isDateTimeType
Returns true if the input is the DateTime type.
isDateType
Returns true if the input is the Date type.
isFunctionType
Returns true if the input is the Function type.
isIntersectionType
Returns true if the input type is the Intersection type.
isKeyType
Returns true if the input is the Key type.
isLiteralType
Returns true if the input is the Literal type.