Gets the alias symbol if it exists.
Gets the alias symbol if it exists, or throws.
Optionalmessage: string | (() => string)Gets the apparent properties of the type.
Gets the apparent type.
Gets the call signatures.
Gets the construct signatures.
Gets the fresh type of the literal or returns undefined if this is not a literal type.
Note: I have no idea what this means. Please help contribute to these js docs if you know.
Gets the fresh type of the literal or throws if this is not a literal type.
Note: I have no idea what this means. Please help contribute to these js docs if you know.
Optionalmessage: string | (() => string)Gets the regular type of the literal or returns undefined if this is not a literal type.
Note: I have no idea what this means. Please help contribute to these js docs if you know.
Gets the regular type of the literal or throws if this is not a literal type.
Note: I have no idea what this means. Please help contribute to these js docs if you know.
Optionalmessage: string | (() => string)Gets the value of a literal or returns undefined if this is not a literal type.
Gets the value of the literal or throws if this is not a literal type.
Optionalmessage: string | (() => string)Gets the non-nullable type.
Gets the object flags.
Gets the properties of the type.
Gets a property or returns undefined if it does not exist.
By a name.
Gets the symbol of the type.
Gets the symbol of the type or throws.
Optionalmessage: string | (() => string)Returns the generic type when the type is a type reference, returns itself when it's already a generic type, or otherwise returns undefined.
For example:
Promise<string> returns Promise<T>.Promise<T> returns the same Promise<T>.string returns undefined.Returns the generic type when the type is a type reference, returns itself when it's already a generic type, or otherwise throws an error.
For example:
Promise<string> returns Promise<T>.Promise<T> returns the same Promise<T>.string throws an error.Optionalmessage: string | (() => string)Gets the type text.
OptionalenclosingNode: Node<tsc.Node>The enclosing node.
OptionaltypeFormatFlags: tsc.TypeFormatFlagsFormat flags for the type text.
Gets if this is an anonymous type.
Gets if this is an any type.
Gets if this is an array type.
Gets if this is a BigInt.
Gets if this is a BigInt literal type.
Gets if this is a boolean type.
Gets if this is a boolean literal type.
Gets if this is a class type.
Gets if this is a class or interface type.
Gets if this is an enum type.
Gets if this is an enum literal type.
Gets if this is an interface type.
Gets if this is an intersection type.
Gets if this is a literal type.
Gets if this is a never type.
Gets if this is the null type.
Gets if the type is possibly null or undefined.
Gets if this is a number type.
Gets if this is a number literal type.
Gets if this is an object type.
Gets if this is a readonly array type.
Gets if this is a string type.
Gets if this is a string literal type.
Gets if this is a template literal type.
Gets if this is a type parameter.
Gets if this is the undefined type.
Gets if this is a union or intersection type.
Gets if this is the unknown type.
Gets if this is the void type.
Gets the underlying compiler type.