Asserts at compile time that the actual type and the expected type are mutually assignable.
This function does nothing at runtime. TypeScript reports an error unless the expected type is assignable to the actual type and the actual type is
assignable to the expected type.
Asserts at compile time that the actual type and the expected type are mutually assignable.
This function does nothing at runtime. TypeScript reports an error unless the expected type is assignable to the actual type and the actual type is assignable to the expected type.