Skip to content

Commit bba93f7

Browse files
committed
Update wrapper docstr
1 parent ba090a2 commit bba93f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/browser/src/integrations/featureFlags/unleash/integration.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export const unleashIntegration = defineIntegration(({unleashClientClass}: {unle
4747
/**
4848
* Wraps the UnleashClient.isEnabled method to capture feature flag evaluations. Its only side effect is writing to Sentry scope.
4949
*
50+
* This wrapper is safe for all isEnabled signatures. If the signature does not match (this: UnleashClient, toggleName: string, ...args: unknown[]) => boolean,
51+
* we log an error and return the original result.
52+
*
5053
* @param original - The original method.
5154
* @returns Wrapped method. Results should match the original.
5255
*/

0 commit comments

Comments
 (0)