Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import { LDClient, LDContext, LDFlagSet, LDOptions } from 'launchdarkly-js-client-sdk';
import { LDClient, LDContext, LDFlagSet, LDOptions as CommonLDOptions } from 'launchdarkly-js-client-sdk';
import * as React from 'react';
import defaultReactContext from './context';

export interface LDOptions extends CommonLDOptions {
/**
* Whether analytics events should be sent only when you call variation (true), or also when you
* call allFlags (false).
*
* By default, this is true.
*/
sendEventsOnlyForVariation?: boolean
}

/**
* Initialization options for the LaunchDarkly React SDK. These are in addition to the options exposed
* by [[LDOptions]] which are common to both the JavaScript and React SDKs.
* by {@link LDOptions} which are common to both the JavaScript and React SDKs.
*/
export interface LDReactOptions {
/**
Expand Down