Skip to main content
Binds a host handler to a function created by definePortalFunction.

Parameters

PortalFunction<Output, Input>
required
Type: PortalFunctionDefined function whose metadata identifies the capability.
PortalFunctionHandler<NoInfer<Output>, NoInfer<Input>>
required
Type: PortalFunctionHandlerHost handler with the same input and output contract.

Returns

PortalFunctionImplementation The definition, callable, and handler as one implementation record.