From 90b0a1a6069a72c3d9eeb33a4fe6fbac8e08a265 Mon Sep 17 00:00:00 2001 From: Wildan Muhlis Date: Wed, 29 Jan 2025 09:02:38 +0700 Subject: [PATCH 1/2] Export UseOnyxOptions --- lib/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index cde7a9071..8e3e53f35 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -17,7 +17,7 @@ import type { OnyxMergeInput, OnyxMergeCollectionInput, } from './types'; -import type {FetchStatus, ResultMetadata, UseOnyxResult} from './useOnyx'; +import type {FetchStatus, ResultMetadata, UseOnyxResult, UseOnyxOptions} from './useOnyx'; import type {Connection} from './OnyxConnectionManager'; import useOnyx from './useOnyx'; import withOnyx from './withOnyx'; @@ -48,4 +48,5 @@ export type { UseOnyxResult, WithOnyxState, Connection, + UseOnyxOptions, }; From 6ccd04b05ae7c9f64237afc460108e5f72d81b18 Mon Sep 17 00:00:00 2001 From: Wildan Muhlis Date: Wed, 29 Jan 2025 09:05:14 +0700 Subject: [PATCH 2/2] remove unnecessary export --- lib/useOnyx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/useOnyx.ts b/lib/useOnyx.ts index 2e2dc2ae7..e95b5faad 100644 --- a/lib/useOnyx.ts +++ b/lib/useOnyx.ts @@ -347,4 +347,4 @@ function useOnyx>( export default useOnyx; -export type {FetchStatus, ResultMetadata, UseOnyxResult, BaseUseOnyxOptions, UseOnyxSelector, UseOnyxSelectorOption, UseOnyxInitialValueOption, UseOnyxOptions}; +export type {FetchStatus, ResultMetadata, UseOnyxResult, UseOnyxOptions};