Skip to content

Commit

Permalink
fix(runner): remove unnessary args from event methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brewcoua committed Jun 14, 2024
1 parent 93a5143 commit 951b9ef
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions src/services/runner/Runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,28 +196,16 @@ export default class Runner extends Service {
return new Promise((resolve) => setTimeout(resolve, ms))
}

public on_action(
event: 'action',
listener: (action: ActionReport) => void
): this {
return super.on(event, listener)
public on_action(listener: (action: ActionReport) => void): this {
return super.on('action', listener)
}
public on_status(
event: 'status',
listener: (status: RunnerStatus) => void
): this {
return super.on(event, listener)
public on_status(listener: (status: RunnerStatus) => void): this {
return super.on('status', listener)
}
public off_action(
event: 'action',
listener: (action: ActionReport) => void
): this {
return super.off(event, listener)
public off_action(listener: (action: ActionReport) => void): this {
return super.off('action', listener)
}
public off_status(
event: 'status',
listener: (status: RunnerStatus) => void
): this {
return super.off(event, listener)
public off_status(listener: (status: RunnerStatus) => void): this {
return super.off('status', listener)
}
}

0 comments on commit 951b9ef

Please sign in to comment.