Skip to content

Commit ae15c0c

Browse files
committed
chore: switching to re-exporting the interface
1 parent 828e6de commit ae15c0c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/types.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
import { LDClient, LDContext, LDFlagSet, LDOptions } from 'launchdarkly-js-client-sdk';
1+
import { LDClient, LDContext, LDFlagSet, LDOptions as CommonLDOptions } from 'launchdarkly-js-client-sdk';
22
import * as React from 'react';
33
import defaultReactContext from './context';
44

5+
export interface LDOptions extends CommonLDOptions {
6+
/**
7+
* Whether analytics events should be sent only when you call variation (true), or also when you
8+
* call allFlags (false).
9+
*
10+
* By default, this is true.
11+
*/
12+
sendEventsOnlyForVariation?: boolean
13+
}
14+
515
/**
616
* Initialization options for the LaunchDarkly React SDK. These are in addition to the options exposed
717
* by {@link LDOptions} which are common to both the JavaScript and React SDKs.
8-
*
9-
* @remarks
10-
* This SDK defaults the `sendEventsOnlyForVariation` value from the `LDOptions` to `true`
11-
* due to previous limitations. If you want to send all events, then you should override
12-
* this default.
1318
*/
1419
export interface LDReactOptions {
1520
/**

0 commit comments

Comments
 (0)