-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sure all finish reasons are defined
- Loading branch information
1 parent
770ce5d
commit e0f9ca0
Showing
3 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
// Store finish reasons in tuple to save on bundle size | ||
// Readonly type should enforce that this is not mutated. | ||
export const FINISH_REASON_TAG = 'finishReason'; | ||
export const FINISH_REASON_TAG = 'finishReason' as const; | ||
|
||
export const IDLE_TRANSACTION_FINISH_REASONS = [ | ||
'heartbeatFailed', | ||
'idleTimeout', | ||
'documentHidden', | ||
'finalTimeout', | ||
'externalFinish', | ||
] as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters