[I] MixedFunctionParameter
A function parameter with a mixed parameter constraint that could accept a value.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
creating? | public | true | If the type is currently being created. | FunctionParameterBase.creating |
entityKind | readonly | "Type" | Distinguishes semantic types from values and parameter constraints. | FunctionParameterBase.entityKind |
instantiationParameters? | public | Type[] | Legacy instantiation metadata. The compiler’s type checker does not populate this field, so its absence does not indicate whether this type is a template instance. | FunctionParameterBase.instantiationParameters |
isFinished | public | boolean | Reflect if a type has been finished(Decorators have been called). There is multiple reasons a type might not be finished: - a template declaration will not - a template instance that argument that are still template parameters - a template instance that is only partially instantiated(like a templated operation inside a templated interface) | FunctionParameterBase.isFinished |
kind | public | "FunctionParameter" | Shared parameter discriminant; mixed selects the constraint representation. | FunctionParameterBase.kind |
mixed | public | true | Selects independent type and value alternatives instead of a simple type constraint. | - |
name | public | string | The name of this function parameter, as declared in the TypeSpec source. | FunctionParameterBase.name |
node? | public | FunctionParameterNode | Node used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example. | FunctionParameterBase.node |
optional | public | boolean | Whether this parameter is optional. | FunctionParameterBase.optional |
rest | public | boolean | Whether this parameter is a rest parameter (i.e., ...args). | FunctionParameterBase.rest |
type | public | MixedParameterConstraint | Constraint describing the types or values that may be supplied. | - |