defineHandler( )
Helper function to define a handler with full type inference. This is an identity function that provides type checking.
function defineHandler(definition: PluginHandlerDefinition): PluginHandlerDefinitionParameters
| Name | Type | Required? | Description |
|---|---|---|---|
definition | PluginHandlerDefinition | ✓ | The handler definition containing requestSchema, responseSchema, streaming flag, and the handler function |
Returns
PluginHandlerDefinition