feat: Set pricing context hook (#11891)

This commit is contained in:
Harminder Virk
2025-03-28 15:17:52 +05:30
committed by GitHub
parent 350b6b9a71
commit b1b3b48474
18 changed files with 1493 additions and 104 deletions

View File

@@ -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