feat: Set pricing context hook (#11891)
This commit is contained in:
@@ -85,6 +85,9 @@ export function createHook<Name extends string, TInvokeInput, TInvokeOutput>(
|
||||
if (options.resultValidator) {
|
||||
return options.resultValidator.parse(result)
|
||||
}
|
||||
if (result === undefined) {
|
||||
return new StepResponse(undefined)
|
||||
}
|
||||
return result
|
||||
},
|
||||
() => void 0
|
||||
|
||||
Reference in New Issue
Block a user