We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a429683 commit 12040feCopy full SHA for 12040fe
src/index.tsx
@@ -32,8 +32,13 @@ const WearConnectivity = WearConnectivityModule
32
export { sendMessage, watchEvents, WearConnectivity };
33
export type { ReplyCallback, ErrorCallback };
34
35
+type WearParameters = {
36
+ event: string;
37
+ text: string;
38
+};
39
+
40
// Define the headless task
-const WearConnectivityTask = async (taskData) => {
41
+const WearConnectivityTask = async (taskData: WearParameters) => {
42
// Emit an event or process the message as needed
43
DeviceEventEmitter.emit('message', taskData);
44
};
0 commit comments