Skip to content

Commit

Permalink
fix: Export required types from compat. (#645)
Browse files Browse the repository at this point in the history
This should just make this a little easier to use, only needing to
import compat.
  • Loading branch information
kinyoklion authored Nov 4, 2024
1 parent b8a2331 commit 008dcf0
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion packages/sdk/browser/src/compat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,59 @@
* Some code changes may still be required, for example {@link LDOptions} removes
* support for some previously available options.
*/
import { LDContext, LDOptions } from '..';
import {
basicLogger,
EvaluationSeriesContext,
EvaluationSeriesData,
Hook,
HookMetadata,
IdentifySeriesContext,
IdentifySeriesData,
IdentifySeriesResult,
IdentifySeriesStatus,
LDContext,
LDContextCommon,
LDContextMeta,
LDEvaluationDetail,
LDEvaluationDetailTyped,
LDEvaluationReason,
LDFlagSet,
LDIdentifyOptions,
LDLogger,
LDLogLevel,
LDMultiKindContext,
LDOptions,
LDSingleKindContext,
} from '..';
import { LDClient } from './LDClientCompat';
import LDClientCompatImpl from './LDClientCompatImpl';

export type {
LDClient,
LDFlagSet,
LDContext,
LDContextCommon,
LDContextMeta,
LDMultiKindContext,
LDSingleKindContext,
LDLogLevel,
LDLogger,
LDOptions,
LDEvaluationDetail,
LDEvaluationDetailTyped,
LDEvaluationReason,
LDIdentifyOptions,
Hook,
HookMetadata,
EvaluationSeriesContext,
EvaluationSeriesData,
IdentifySeriesContext,
IdentifySeriesData,
IdentifySeriesResult,
IdentifySeriesStatus,
basicLogger,
};

/**
* Creates an instance of the LaunchDarkly client. This version of initialization is for
* improved backwards compatibility. In general the `initialize` function from the root packge
Expand Down

0 comments on commit 008dcf0

Please sign in to comment.