[F] assertType
Assert that the input type has one of the kinds provided
Type Parameters
Type Parameter |
---|
TKind extends ( | "Boolean" | "Decorator" | "Enum" | "EnumMember" | "FunctionParameter" | "Function" | "Interface" | "Intrinsic" | "Model" | "ModelProperty" | "Namespace" | "Number" | "Object" | "Operation" | "Projection" | "Scalar" | "ScalarConstructor" | "String" | "StringTemplate" | "StringTemplateSpan" | "TemplateParameter" | "Tuple" | "Union" | "UnionVariant" )[] |
Parameters
Parameter | Type |
---|---|
typeDescription | string |
t | Type |
…kinds | TKind |
Returns
asserts t is Type & Object