validate_interface_implementation
Check if TypeScript code correctly implements a specified interface by comparing implementation against the interface definition.
Instructions
Validate if code correctly implements an interface
Input Schema
Name | Required | Description | Default |
---|---|---|---|
implementation | Yes | The implementation code to validate | |
interfaceDefinition | Yes | The interface definition | |
interfaceName | Yes | Name of the interface being implemented |
Input Schema (JSON Schema)
{
"properties": {
"implementation": {
"description": "The implementation code to validate",
"type": "string"
},
"interfaceDefinition": {
"description": "The interface definition",
"type": "string"
},
"interfaceName": {
"description": "Name of the interface being implemented",
"type": "string"
}
},
"required": [
"implementation",
"interfaceName",
"interfaceDefinition"
],
"type": "object"
}