Skip to content

Commit 8d8250c

Browse files
authored
fix: Export correct options for compat. (#678)
1 parent 6c4bb82 commit 8d8250c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/sdk/browser/src/common.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { BasicLogger, BasicLoggerOptions, LDLogger } from '@launchdarkly/js-client-sdk-common';
22

33
import { BrowserIdentifyOptions as LDIdentifyOptions } from './BrowserIdentifyOptions';
4-
import { BrowserOptions as LDOptions } from './options';
54

65
// The exported LDIdentifyOptions and LDOptions are the browser specific implementations.
76
// These shadow the common implementations.
8-
export type { LDIdentifyOptions, LDOptions };
7+
export type { LDIdentifyOptions };
98

109
export type {
1110
AutoEnvAttributes,

packages/sdk/browser/src/compat/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
* Some code changes may still be required, for example {@link LDOptions} removes
66
* support for some previously available options.
77
*/
8-
import { LDContext, LDOptions } from '@launchdarkly/js-client-sdk-common';
8+
import { LDContext } from '@launchdarkly/js-client-sdk-common';
99

1010
import { LDClient } from './LDClientCompat';
1111
import LDClientCompatImpl from './LDClientCompatImpl';
12+
import { LDOptions } from './LDCompatOptions';
1213

1314
export * from '../common';
14-
export type { LDClient };
15+
export type { LDClient, LDOptions };
1516

1617
/**
1718
* Creates an instance of the LaunchDarkly client. This version of initialization is for

packages/sdk/browser/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
import { AutoEnvAttributes } from '@launchdarkly/js-client-sdk-common';
1414

1515
import { BrowserClient, LDClient } from './BrowserClient';
16-
import { LDOptions } from './common';
16+
import { BrowserOptions as LDOptions } from './options';
1717

1818
export * from './common';
19-
export type { LDClient };
19+
export type { LDClient, LDOptions };
2020

2121
/**
2222
* Creates an instance of the LaunchDarkly client.

0 commit comments

Comments
 (0)