check_type_compatibility
Verify TypeScript type compatibility by checking if a source type can be assigned to a target type, ensuring type safety in your code.
Instructions
Check if two types are compatible/assignable
Input Schema
Name | Required | Description | Default |
---|---|---|---|
sourceType | Yes | The source type | |
targetType | Yes | The target type |
Input Schema (JSON Schema)
{
"properties": {
"sourceType": {
"description": "The source type",
"type": "string"
},
"targetType": {
"description": "The target type",
"type": "string"
}
},
"required": [
"sourceType",
"targetType"
],
"type": "object"
}