Create a new PredicateType instance.
The identifier name which is tested by the predicate.
True if the type is of the form asserts val is string
,
false if the type is of the form val is string
Optional
targetType: Models.SomeTypeThe type that the identifier is tested to be.
May be undefined if the type is of the form asserts val
.
Will be defined if the type is of the form asserts val is string
or val is string
.
Return the estimated size of the type if it was all printed on one line.
Protected
getReturn a string representation of this type.
Return a string representation of this type.
True if the type is of the form asserts val is string
,
false if the type is of the form val is string
The identifier name which is tested by the predicate.
Readonly
typeThe type name identifier.
Optional
targetThe type that the identifier is tested to be.
May be undefined if the type is of the form asserts val
.
Will be defined if the type is of the form asserts val is string
or val is string
.
Represents a type predicate.