react-native-onyx 2.0.25 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/useOnyx.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Onyx from './Onyx';
|
|
2
2
|
import type { OnyxUpdate, ConnectOptions } from './Onyx';
|
|
3
3
|
import type { CustomTypeOptions, OnyxCollection, OnyxEntry, NullishDeep, KeyValueMapping, OnyxKey, Selector, WithOnyxInstanceState, OnyxValue } from './types';
|
|
4
|
-
import type { UseOnyxResult, FetchStatus } from './useOnyx';
|
|
4
|
+
import type { UseOnyxResult, FetchStatus, ResultMetadata } from './useOnyx';
|
|
5
5
|
import useOnyx from './useOnyx';
|
|
6
6
|
import withOnyx from './withOnyx';
|
|
7
7
|
export default Onyx;
|
|
8
8
|
export { withOnyx, useOnyx };
|
|
9
|
-
export type { CustomTypeOptions, OnyxCollection, OnyxEntry, OnyxUpdate, ConnectOptions, NullishDeep, KeyValueMapping, OnyxKey, Selector, WithOnyxInstanceState, UseOnyxResult, OnyxValue, FetchStatus, };
|
|
9
|
+
export type { CustomTypeOptions, OnyxCollection, OnyxEntry, OnyxUpdate, ConnectOptions, NullishDeep, KeyValueMapping, OnyxKey, Selector, WithOnyxInstanceState, UseOnyxResult, OnyxValue, FetchStatus, ResultMetadata, };
|
package/dist/useOnyx.d.ts
CHANGED
|
@@ -33,4 +33,4 @@ type ResultMetadata = {
|
|
|
33
33
|
type UseOnyxResult<TKey extends OnyxKey, TValue> = [CachedValue<TKey, TValue>, ResultMetadata];
|
|
34
34
|
declare function useOnyx<TKey extends OnyxKey, TReturnValue = OnyxValue<TKey>>(key: TKey, options?: UseOnyxOptions<TKey, TReturnValue>): UseOnyxResult<TKey, TReturnValue>;
|
|
35
35
|
export default useOnyx;
|
|
36
|
-
export type { UseOnyxResult, FetchStatus };
|
|
36
|
+
export type { UseOnyxResult, ResultMetadata, FetchStatus };
|