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 {
1616 TurboModuleRegistry ,
1717 View ,
1818} from "react-native" ;
19+ import type { AsyncStorageTestSupport } from "./types" ;
20+
1921
2022type Personalia = {
2123 age : string ;
@@ -102,14 +104,6 @@ function Merge(): JSX.Element {
102104
103105 const { trait1, trait2 } = traits ;
104106
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-
113107 const AsyncStorageTestSupport =
114108 TurboModuleRegistry . get < AsyncStorageTestSupport > ( "AsyncStorageTestSupport" ) ;
115109
Original file line number Diff line number Diff line change 11import type { TurboModule } from "react-native" ;
22
3- type AsyncStorageDelegate = ( value : boolean ) => void ;
3+ type AsyncStorageDelegate = ( value ? : boolean ) => void ;
44
55export type AsyncStorageTestSupport = TurboModule & {
66 test_setDelegate : ( delegate : AsyncStorageDelegate ) => void ;
77 test_unsetDelegate : ( delegate : AsyncStorageDelegate ) => void ;
8- getConstants ( ) : object ;
98} ;
You can’t perform that action at this time.
0 commit comments