From 8b7b2bbed6ceae47714b4f2e478e0aa061b29b33 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Wed, 15 Nov 2023 17:38:16 -0300 Subject: [PATCH] Export missing types --- src/__tests__/index.test.ts | 5 ++++- src/index.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index 3604c01..c8bd2f3 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -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, @@ -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'; diff --git a/src/index.ts b/src/index.ts index 6aff505..f25e6fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,6 +25,7 @@ export { SplitContext } from './SplitContext'; // Types export type { + GetTreatmentsOptions, ISplitClientChildProps, ISplitClientProps, ISplitContextValues, @@ -33,5 +34,7 @@ export type { ISplitStatus, ISplitTreatmentsChildProps, ISplitTreatmentsProps, - IUpdateProps + IUpdateProps, + IUseSplitClientOptions, + IUseSplitTreatmentsOptions, } from './types';