diff --git a/node/task.ts b/node/task.ts index 3ecbebfde..42ac50ccd 100644 --- a/node/task.ts +++ b/node/task.ts @@ -80,6 +80,8 @@ export const setErrStream = im._setErrStream; * from agent version 2.142.0 or higher (otherwise will no-op). * @returns void */ +export function setResult(result: TaskResult.Succeeded, message?: string, done?: boolean): void; +export function setResult(result: Exclude, message: string, done?: boolean): void; export function setResult(result: TaskResult, message: string, done?: boolean): void { debug('task result: ' + TaskResult[result]);