Skip to content

Commit

Permalink
fix: add missing request body type
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Nov 7, 2024
1 parent b470314 commit 7ef3496
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ExpoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,10 @@ export type ExpoClientOptions = {

export type ExpoPushToken = string;

// see "Message request format" at https://docs.expo.dev/push-notifications/sending-notifications/#message-request-format
export type ExpoPushMessage = {
to: ExpoPushToken | ExpoPushToken[];
data?: object;
data?: Record<string, unknown>;
title?: string;
subtitle?: string;
body?: string;
Expand All @@ -364,6 +365,7 @@ export type ExpoPushMessage = {
channelId?: string;
categoryId?: string;
mutableContent?: boolean;
_contentAvailable?: boolean;
};

export type ExpoPushReceiptId = string;
Expand Down

0 comments on commit 7ef3496

Please sign in to comment.