@umituz/react-native-storage 2.6.13 → 2.6.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-storage",
3
- "version": "2.6.13",
3
+ "version": "2.6.14",
4
4
  "description": "Unified storage solution with AsyncStorage persistence, Zustand state management, and in-memory caching for React Native",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,42 +0,0 @@
1
- /// <reference types="jest" />
2
- /// <reference types="node" />
3
-
4
- declare module '@react-native-async-storage/async-storage' {
5
- export interface AsyncStorageStatic {
6
- getItem(key: string): Promise<string | null>;
7
- setItem(key: string, value: string): Promise<void>;
8
- removeItem(key: string): Promise<void>;
9
- clear(): Promise<void>;
10
- getAllKeys(): Promise<readonly string[]>;
11
- multiGet(keys: readonly string[]): Promise<readonly (readonly [string, string | null])[]>;
12
- }
13
-
14
- const AsyncStorage: AsyncStorageStatic;
15
- export default AsyncStorage;
16
- }
17
-
18
- declare module 'react' {
19
- export function useState<T>(initialState: T | (() => T)): [T, (value: T | ((prev: T) => T)) => void];
20
- export function useEffect(effect: () => void | (() => void), deps?: readonly any[]): void;
21
- export function useCallback<T extends (...args: any[]) => any>(callback: T, deps: readonly any[]): T;
22
- export function useMemo<T>(factory: () => T, deps: readonly any[]): T;
23
- export function useRef<T>(initialValue?: T): { current: T | undefined };
24
- export function useRef<T>(initialValue: T): { current: T };
25
- }
26
-
27
- declare module 'react-native' {
28
- // Add React Native specific types if needed
29
- }
30
-
31
- declare global {
32
- namespace jest {
33
- interface Matchers<R> {
34
- toBeValidStorageKey(): R;
35
- toBeExpired(): R;
36
- toHaveValidCache(): R;
37
- }
38
- }
39
-
40
- var __DEV__: boolean | undefined;
41
- var global: any;
42
- }