feat(workflows): Improve typings (#4689)
Just improve some typings for simpler usage
This commit is contained in:
committed by
GitHub
parent
ce3326c5fb
commit
43f34866c8
@@ -56,6 +56,9 @@ export const exportWorkflow = <TData = unknown, TResult = unknown>(
|
||||
resultFrom: defaultResult,
|
||||
}
|
||||
) => {
|
||||
resultFrom ??= defaultResult
|
||||
throwOnError ??= true
|
||||
|
||||
const transaction = await originalRun(
|
||||
context?.transactionId ?? ulid(),
|
||||
input,
|
||||
|
||||
Reference in New Issue
Block a user