Types (dw::core::Types) Flashcards

1
Q

arrayItem

A

Returns the type of the given array. This function fails if the input is not an Array type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

baseTypeOf

A

Returns an the base type of the given type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

functionParamTypes

A

Returns the list of parameters from the given function type. This function fails if the provided type is not a Function type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

functionReturnType

A

Returns the type of a function’s return type. This function fails if the input type is not a Function type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

intersectionItems

A

Returns an array of all the types that define a given Intersection type. This function fails if the input is not an Intersection type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

isAnyType

A

Returns true if the input is the Any type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

isArrayType

A

Returns true if the input type is the Array type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

isBinaryType

A

Returns true if the input is the Binary type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

isBooleanType

A

Returns true if the input is the Boolean type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

isDateTimeType

A

Returns true if the input is the DateTime type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

isDateType

A

Returns true if the input is the Date type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

isFunctionType

A

Returns true if the input is the Function type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

isIntersectionType

A

Returns true if the input type is the Intersection type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

isKeyType

A

Returns true if the input is the Key type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

isLiteralType

A

Returns true if the input is the Literal type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

isLocalDateTimeType

A

Returns true if the input is the LocalDateTime type.

17
Q

isLocalTimeType

A

Returns true if the input is the LocalTime type.

18
Q

isNamespaceType

A

Returns true if the input is the Namespace type.

19
Q

isNothingType

A

Returns true if the input is the Nothing type.

20
Q

isNullType

A

Returns true if the input is the Null type.

21
Q

isNumberType

A

Returns true if the input is the Number type.

22
Q

isObjectType

A

Returns true if the input is the Object type.

23
Q

isPeriodType

A

Returns true if the input is the Period type.

24
Q

isRangeType

A

Returns true if the input is the Range type.

25
isReferenceType
Returns true if the input type is a Reference type.
26
isRegexType
Returns true if the input is the Regex type.
27
isStringType
Returns true if the input is the String type.
28
isTimeType
Returns true if the input is the Time type.
29
isTimeZoneType
Returns true if the input is the TimeZone type.
30
isTypeType
Returns true if the input is the Type type.
31
isUnionType
Returns true if the input type is the Union type.
32
isUriType
Returns true if the input is the Uri type.
33
literalValueOf
Returns the value of an input belongs to the Literal type.
34
metadataOf
Returns metadata that is attached to the given type.
35
nameOf
Returns the name of the input type.
36
objectFields
Returns the array of fields from the given Object type. This function fails if the type is not an Object type.