Type references (ObjectFlags.Reference). When a class or interface has type parameters or a "this" type, references to the class or interface are made using type references. The typeArguments property specifies the types to substitute for the type parameters of the class or interface and optionally includes an extra element that specifies the type to substitute for "this" in the resulting instantiation. When no extra argument is present, the type reference itself is substituted for "this". The typeArguments property is undefined if the class or interface has no type parameters and the reference isn't specifying an explicit "this" argument.
Type references (ObjectFlags.Reference). When a class or interface has type parameters or a "this" type, references to the class or interface are made using type references. The typeArguments property specifies the types to substitute for the type parameters of the class or interface and optionally includes an extra element that specifies the type to substitute for "this" in the resulting instantiation. When no extra argument is present, the type reference itself is substituted for "this". The typeArguments property is undefined if the class or interface has no type parameters and the reference isn't specifying an explicit "this" argument.
(alias-symbol type-reference)
Returns: Symbol | undefined
**Returns:** `Symbol | undefined`
(alias-type-arguments type-reference)
Returns: readonly Type[] | undefined
**Returns:** `readonly Type[] | undefined`
(apparent-properties type-reference)
Returns: Symbol[]
**Returns:** `Symbol[]`
(base-types type-reference)
Returns: BaseType[] | undefined
**Returns:** `BaseType[] | undefined`
(call-signatures type-reference)
Returns: readonly Signature[]
**Returns:** `readonly Signature[]`
(class-or-interface? type-reference)
Returns: boolean
**Returns:** `boolean`
(constraint type-reference)
Returns: Type | undefined
**Returns:** `Type | undefined`
(construct-signatures type-reference)
Returns: readonly Signature[]
**Returns:** `readonly Signature[]`
(default type-reference)
Returns: Type | undefined
**Returns:** `Type | undefined`
(get-flags type-reference)
Returns: TypeFlags
**Returns:** `TypeFlags`
(get-symbol type-reference)
Returns: Symbol | undefined
**Returns:** `Symbol | undefined`
(index-type? type-reference)
Returns: boolean
**Returns:** `boolean`
(intersection? type-reference)
Returns: boolean
**Returns:** `boolean`
(node type-reference)
Returns: TypeReferenceNode | ArrayTypeNode | TupleTypeNode | undefined
**Returns:** `TypeReferenceNode | ArrayTypeNode | TupleTypeNode | undefined`
(non-nullable-type type-reference)
Returns: Type
**Returns:** `Type`
(number-index-type type-reference)
Returns: Type | undefined
**Returns:** `Type | undefined`
(number-literal? type-reference)
Returns: boolean
**Returns:** `boolean`
(object-flags type-reference)
Returns: ObjectFlags
**Returns:** `ObjectFlags`
(pattern type-reference)
Returns: DestructuringPattern | undefined
**Returns:** `DestructuringPattern | undefined`
(properties type-reference)
Returns: Symbol[]
**Returns:** `Symbol[]`
(property type-reference property-name)
Parameters:
property-name
: string
Returns: Symbol | undefined
**Parameters:** - `property-name`: `string` **Returns:** `Symbol | undefined`
(string-index-type type-reference)
Returns: Type | undefined
**Returns:** `Type | undefined`
(string-literal? type-reference)
Returns: boolean
**Returns:** `boolean`
(target type-reference)
Returns: GenericType
**Returns:** `GenericType`
(type-arguments type-reference)
Returns: readonly Type[] | undefined
**Returns:** `readonly Type[] | undefined`
(type-parameter? type-reference)
Returns: boolean
**Returns:** `boolean`
(union-or-intersection? type-reference)
Returns: boolean
**Returns:** `boolean`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close