Skip to content

Commit c3c8874

Browse files
committed
update tests
1 parent 67526ce commit c3c8874

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

packages/default-storage/example/examples/MergeItem.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {
1616
TurboModuleRegistry,
1717
View,
1818
} from "react-native";
19+
import type { AsyncStorageTestSupport } from "./types";
20+
1921

2022
type 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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type { TurboModule } from "react-native";
22

3-
type AsyncStorageDelegate = (value: boolean) => void;
3+
type AsyncStorageDelegate = (value?: boolean) => void;
44

55
export type AsyncStorageTestSupport = TurboModule & {
66
test_setDelegate: (delegate: AsyncStorageDelegate) => void;
77
test_unsetDelegate: (delegate: AsyncStorageDelegate) => void;
8-
getConstants(): object;
98
};

0 commit comments

Comments
 (0)