File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
packages/default-storage/example/examples Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import {
16
16
TurboModuleRegistry ,
17
17
View ,
18
18
} from "react-native" ;
19
+ import type { AsyncStorageTestSupport } from "./types" ;
20
+
19
21
20
22
type Personalia = {
21
23
age : string ;
@@ -102,14 +104,6 @@ function Merge(): JSX.Element {
102
104
103
105
const { trait1, trait2 } = traits ;
104
106
105
- type AsyncStorageDelegate = ( ) => void ;
106
-
107
- type AsyncStorageTestSupport = {
108
- test_setDelegate : ( delegate : AsyncStorageDelegate ) => void ;
109
- test_unsetDelegate : ( delegate : AsyncStorageDelegate ) => void ;
110
- getConstants ( ) : object ;
111
- } ;
112
-
113
107
const AsyncStorageTestSupport =
114
108
TurboModuleRegistry . get < AsyncStorageTestSupport > ( "AsyncStorageTestSupport" ) ;
115
109
Original file line number Diff line number Diff line change 1
1
import type { TurboModule } from "react-native" ;
2
2
3
- type AsyncStorageDelegate = ( value : boolean ) => void ;
3
+ type AsyncStorageDelegate = ( value ? : boolean ) => void ;
4
4
5
5
export type AsyncStorageTestSupport = TurboModule & {
6
6
test_setDelegate : ( delegate : AsyncStorageDelegate ) => void ;
7
7
test_unsetDelegate : ( delegate : AsyncStorageDelegate ) => void ;
8
- getConstants ( ) : object ;
9
8
} ;
You can’t perform that action at this time.
0 commit comments