Skip to content

Commit ac54c69

Browse files
committed
feat: add type to trace
1 parent af9c1c1 commit ac54c69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/execution/trace.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function calculateTimeAndDuration(executionTimer: ExecutionTimer): TimerDetailsM
2121
}
2222

2323
export function executionTrace<O>(
24-
blockFunction: (...params) => Promise<O>,
24+
blockFunction: (...params: unknown[])=> Promise<O>,
2525
inputs?: Array<unknown>,
2626
onTraceEvent?: (traceContext: TraceContext<O>) => void,
2727
options?: { contextKey?: string; errorStrategy?: 'catch' | 'throw' }
2828
): Promise<ExecutionTrace<Array<unknown>, Awaited<O>>>;
2929

3030
export function executionTrace<O>(
31-
blockFunction: (...params) => O,
31+
blockFunction: (...params: unknown[]) => O,
3232
inputs?: Array<unknown>,
3333
onTraceEvent?: (traceContext: TraceContext<O>) => void,
3434
options?: { contextKey?: string; errorStrategy?: 'catch' | 'throw' }
@@ -54,7 +54,7 @@ export function executionTrace<O>(
5454
* - If `blockFunction` is asynchronous, returns a `Promise<ExecutionTrace>`.
5555
*/
5656
export function executionTrace<O>(
57-
blockFunction: (...params) => O | Promise<O>,
57+
blockFunction: (...params: unknown[]) => O | Promise<O>,
5858
inputs: Array<unknown> = [],
5959
onTraceEvent?: (traceContext: TraceContext<O>) => void,
6060
options: { contextKey?: string; errorStrategy?: 'catch' | 'throw' } = {

0 commit comments

Comments
 (0)