Skip to content

Commit

Permalink
Update the naming of job:finish's "reason" to "outcome"
Browse files Browse the repository at this point in the history
  • Loading branch information
THE-SIMPLE-MARK committed Feb 29, 2024
1 parent 080e350 commit 2e74538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BambuClientEvents.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { BambuClientPrinterStatus, IncomingMessageData, PrinterData } from "./types"
import type { Job } from "src/Job"

export type FinishReason = "SUCCESS" | "FAILED" | "UNEXPECTED"
export type FinishOutcome = "SUCCESS" | "FAILED" | "UNEXPECTED"

export interface BambuClientEvents {
message: [topic: string, key: string, data: IncomingMessageData]
Expand All @@ -19,5 +19,5 @@ export interface BambuClientEvents {
"job:pause": [job: Job]
"job:offlineRecovery": [job: Job]
"job:unpause": [job: Job]
"job:finish": [job: Job, reason: FinishReason]
"job:finish": [job: Job, outcome: FinishOutcome]
}

0 comments on commit 2e74538

Please sign in to comment.