Skip to content

Commit 008dcf0

Browse files
authored
fix: Export required types from compat. (#645)
This should just make this a little easier to use, only needing to import compat.
1 parent b8a2331 commit 008dcf0

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

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

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,59 @@
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 '..';
8+
import {
9+
basicLogger,
10+
EvaluationSeriesContext,
11+
EvaluationSeriesData,
12+
Hook,
13+
HookMetadata,
14+
IdentifySeriesContext,
15+
IdentifySeriesData,
16+
IdentifySeriesResult,
17+
IdentifySeriesStatus,
18+
LDContext,
19+
LDContextCommon,
20+
LDContextMeta,
21+
LDEvaluationDetail,
22+
LDEvaluationDetailTyped,
23+
LDEvaluationReason,
24+
LDFlagSet,
25+
LDIdentifyOptions,
26+
LDLogger,
27+
LDLogLevel,
28+
LDMultiKindContext,
29+
LDOptions,
30+
LDSingleKindContext,
31+
} from '..';
932
import { LDClient } from './LDClientCompat';
1033
import LDClientCompatImpl from './LDClientCompatImpl';
1134

35+
export type {
36+
LDClient,
37+
LDFlagSet,
38+
LDContext,
39+
LDContextCommon,
40+
LDContextMeta,
41+
LDMultiKindContext,
42+
LDSingleKindContext,
43+
LDLogLevel,
44+
LDLogger,
45+
LDOptions,
46+
LDEvaluationDetail,
47+
LDEvaluationDetailTyped,
48+
LDEvaluationReason,
49+
LDIdentifyOptions,
50+
Hook,
51+
HookMetadata,
52+
EvaluationSeriesContext,
53+
EvaluationSeriesData,
54+
IdentifySeriesContext,
55+
IdentifySeriesData,
56+
IdentifySeriesResult,
57+
IdentifySeriesStatus,
58+
basicLogger,
59+
};
60+
1261
/**
1362
* Creates an instance of the LaunchDarkly client. This version of initialization is for
1463
* improved backwards compatibility. In general the `initialize` function from the root packge

0 commit comments

Comments
 (0)