Skip to content

Commit

Permalink
Add missing id to notification type
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed May 2, 2024
1 parent 9e2bab6 commit 3992301
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/ClientToServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export interface ClientToServer extends ClientToServerBase {
}) => number;

/** Deletes a notification */
"notification/delete": (data: { notification_id: number }) => void;
"notification/delete": (data: { notification_id: string }) => void;

/** Connects to the game list count.
* Once connected you'll start receiving `gamelist-count` or
Expand Down
2 changes: 2 additions & 0 deletions src/protocol/ServerToClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export interface ServerToClient {
* as a reference for what types there are and what data they contain
*/
"notification": (data: {
/** The notification id */
id: string;
/** The notification type */
type: string;
/** There are often more fields here */
Expand Down

0 comments on commit 3992301

Please sign in to comment.