Fix minor type error

This commit is contained in:
Nilay Majorwar 2021-12-17 00:51:43 +05:30
parent a69d8a42b5
commit d838366023

View File

@ -161,7 +161,7 @@ export const useExecController = <RS>() => {
const execute = React.useCallback(
async (
onResult: (result: StepExecutionResult<RS>) => void,
interval?: number
interval: number
) => {
setWorkerState("processing");
// Set up a streaming-response cycle with the worker