-
Notifications
You must be signed in to change notification settings - Fork 31
feat: Add support for client-side prerequisite events. #606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
eb42068
95a656d
20af513
2302713
bc7fac8
d1c88ad
cd5192e
279c8e1
c9717ce
73ed9c8
dddc866
7a6cc71
7ffe8e5
a0567a4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,10 +17,15 @@ export function createSuccessEvaluationDetail( | |
| value: LDFlagValue, | ||
| variationIndex?: number, | ||
| reason?: LDEvaluationReason, | ||
| prerequisites?: string[], | ||
| ): LDEvaluationDetail { | ||
| return { | ||
| const res: LDEvaluationDetail = { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was an intermediate change as I was sorting detail. It could be removed, but it doesn't hurt anything. |
||
| value, | ||
| variationIndex: variationIndex ?? null, | ||
| reason: reason ?? null, | ||
| }; | ||
| if (prerequisites) { | ||
|
||
| res.prerequisites = prerequisites; | ||
| } | ||
| return res; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just linting changes in this file.