File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change
1
+ import type {
2
+ AsyncStorageHook ,
3
+ AsyncStorageStatic ,
4
+ } from '../lib/typescript/types' ;
5
+
6
+ export function useAsyncStorage ( key : string ) : AsyncStorageHook ;
7
+
8
+ declare const AsyncStorage : AsyncStorageStatic ;
9
+ export default AsyncStorage ;
Original file line number Diff line number Diff line change 1
1
import AsyncStorage from './AsyncStorage' ;
2
- import type { AsyncStorageHook , AsyncStorageStatic } from './types' ;
3
2
4
3
export { useAsyncStorage } from './hooks' ;
5
- export type { AsyncStorageStatic } from './types' ;
6
4
7
5
export default AsyncStorage ;
8
-
9
- // @ts -ignore AsyncStorage mock module
10
- declare module '@react-native-async-storage/async-storage/jest/async-storage-mock' {
11
- export function useAsyncStorage ( key : string ) : AsyncStorageHook ;
12
- const AsyncStorageLib : AsyncStorageStatic ;
13
- export default AsyncStorageLib ;
14
- }
You can’t perform that action at this time.
0 commit comments