Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
28 lines
952 B
Plaintext
28 lines
952 B
Plaintext
import { IntegrationFn } from '../../types-hoist/integration';
|
|
interface GrowthBookLike {
|
|
isOn(this: GrowthBookLike, featureKey: string, ...rest: unknown[]): boolean;
|
|
getFeatureValue(this: GrowthBookLike, featureKey: string, defaultValue: unknown, ...rest: unknown[]): unknown;
|
|
}
|
|
export type GrowthBookClassLike = new (...args: unknown[]) => GrowthBookLike;
|
|
/**
|
|
* Sentry integration for capturing feature flag evaluations from GrowthBook.
|
|
*
|
|
* Only boolean results are captured at this time.
|
|
*
|
|
* @example
|
|
* ```typescript
|
|
* import { GrowthBook } from '@growthbook/growthbook';
|
|
* import * as Sentry from '@sentry/browser'; // or '@sentry/node'
|
|
*
|
|
* Sentry.init({
|
|
* dsn: 'your-dsn',
|
|
* integrations: [
|
|
* Sentry.growthbookIntegration({ growthbookClass: GrowthBook })
|
|
* ]
|
|
* });
|
|
* ```
|
|
*/
|
|
export declare const growthbookIntegration: IntegrationFn;
|
|
export {};
|
|
//# sourceMappingURL=growthbook.d.ts.map
|