QVAC Logo

defineHandler( )

Helper function to define a handler with full type inference. This is an identity function that provides type checking.

function defineHandler(definition: PluginHandlerDefinition): PluginHandlerDefinition

Parameters

NameTypeRequired?Description
definitionPluginHandlerDefinitionThe handler definition containing requestSchema, responseSchema, streaming flag, and the handler function

Returns

PluginHandlerDefinition

On this page