Skip to content

Commit

Permalink
Export missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoSanchez committed Nov 15, 2023
1 parent 6e3738f commit 8b7b2bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
useSplitTreatments as exportedUseSplitTreatments,
useSplitManager as exportedUseSplitManager,
// Checks that types are exported. Otherwise, the test would fail with a TS error.
GetTreatmentsOptions,
ISplitClientChildProps,
ISplitClientProps,
ISplitContextValues,
Expand All @@ -24,7 +25,9 @@ import {
ISplitStatus,
ISplitTreatmentsChildProps,
ISplitTreatmentsProps,
IUpdateProps
IUpdateProps,
IUseSplitClientOptions,
IUseSplitTreatmentsOptions,
} from '../index';
import { SplitContext } from '../SplitContext';
import { SplitFactory as SplitioEntrypoint } from '@splitsoftware/splitio/client';
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export { SplitContext } from './SplitContext';

// Types
export type {
GetTreatmentsOptions,
ISplitClientChildProps,
ISplitClientProps,
ISplitContextValues,
Expand All @@ -33,5 +34,7 @@ export type {
ISplitStatus,
ISplitTreatmentsChildProps,
ISplitTreatmentsProps,
IUpdateProps
IUpdateProps,
IUseSplitClientOptions,
IUseSplitTreatmentsOptions,
} from './types';

0 comments on commit 8b7b2bb

Please sign in to comment.