Skip to content

Commit 12040fe

Browse files
committed
adding type WearParameters
1 parent a429683 commit 12040fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ const WearConnectivity = WearConnectivityModule
3232
export { sendMessage, watchEvents, WearConnectivity };
3333
export type { ReplyCallback, ErrorCallback };
3434

35+
type WearParameters = {
36+
event: string;
37+
text: string;
38+
};
39+
3540
// Define the headless task
36-
const WearConnectivityTask = async (taskData) => {
41+
const WearConnectivityTask = async (taskData: WearParameters) => {
3742
// Emit an event or process the message as needed
3843
DeviceEventEmitter.emit('message', taskData);
3944
};

0 commit comments

Comments
 (0)