feat(workflows): Improve typings (#4689)

Just improve some typings for simpler usage
This commit is contained in:
Adrien de Peretti
2023-08-04 10:11:44 +02:00
committed by GitHub
parent ce3326c5fb
commit 43f34866c8
9 changed files with 41 additions and 36 deletions

View File

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