[F] isCadlValueTypeOf
function isCadlValueTypeOf<K>(target, expectedType): target is InferredTypeSpecValue<K>Type Parameters
| Type Parameter |
|---|
K extends TypeKind |
Parameters
| Parameter | Type | Description |
|---|---|---|
target | TypeSpecValue | Target to validate. |
expectedType | K | readonly K[] | One or multiple allowed TypeSpec types. |
Returns
target is InferredTypeSpecValue<K>
boolean if the target is of one of the allowed types.
Deprecated
use isTypeSpecValueTypeOf