Skip to content

Commit

Permalink
Update wrapper docstr
Browse files Browse the repository at this point in the history
  • Loading branch information
aliu39 committed Jan 15, 2025
1 parent ba090a2 commit bba93f7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ export const unleashIntegration = defineIntegration(({unleashClientClass}: {unle
/**
* Wraps the UnleashClient.isEnabled method to capture feature flag evaluations. Its only side effect is writing to Sentry scope.
*
* This wrapper is safe for all isEnabled signatures. If the signature does not match (this: UnleashClient, toggleName: string, ...args: unknown[]) => boolean,
* we log an error and return the original result.
*
* @param original - The original method.
* @returns Wrapped method. Results should match the original.
*/
Expand Down

0 comments on commit bba93f7

Please sign in to comment.