Skip to content

Commit abf4f8a

Browse files
authored
Merge pull request #613 from wildan-m/wildan/fix/51296-export-type
Export UseOnyxOptions to be Used in useOnyx wrapper
2 parents ea9ab3e + 6ccd04b commit abf4f8a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717
OnyxMergeInput,
1818
OnyxMergeCollectionInput,
1919
} from './types';
20-
import type {FetchStatus, ResultMetadata, UseOnyxResult} from './useOnyx';
20+
import type {FetchStatus, ResultMetadata, UseOnyxResult, UseOnyxOptions} from './useOnyx';
2121
import type {Connection} from './OnyxConnectionManager';
2222
import useOnyx from './useOnyx';
2323
import withOnyx from './withOnyx';
@@ -48,4 +48,5 @@ export type {
4848
UseOnyxResult,
4949
WithOnyxState,
5050
Connection,
51+
UseOnyxOptions,
5152
};

lib/useOnyx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,4 +347,4 @@ function useOnyx<TKey extends OnyxKey, TReturnValue = OnyxValue<TKey>>(
347347

348348
export default useOnyx;
349349

350-
export type {FetchStatus, ResultMetadata, UseOnyxResult, BaseUseOnyxOptions, UseOnyxSelector, UseOnyxSelectorOption, UseOnyxInitialValueOption, UseOnyxOptions};
350+
export type {FetchStatus, ResultMetadata, UseOnyxResult, UseOnyxOptions};

0 commit comments

Comments
 (0)