Skip to content

Commit

Permalink
Merge pull request #7 from notificationapi-com/jYMtb7sp/2491-react-sd…
Browse files Browse the repository at this point in the history
…k-web-push

update a type
  • Loading branch information
sahandseifi authored Oct 24, 2024
2 parents c00bb0e + 53e7e29 commit 7d789f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ type NotificationAPIClientSDK = {
}>
): Promise<any>;

Check warning on line 73 in lib/client.ts

View workflow job for this annotation

GitHub Actions / Test & Build

Unexpected any. Specify a different type
postUser(params: PostUserRequest): Promise<any>;
getUserAccountMetadata(): Promise<UserAccountMetadata>;
getUserAccountMetadata(): Promise<{
userAccountMetadata: UserAccountMetadata;
}>;
};
websocket: {
object: WebSocket | undefined;
Expand Down Expand Up @@ -106,7 +108,9 @@ type NotificationAPIClientSDK = {
}): Promise<void>;
getPreferences(): Promise<GetPreferencesResponse>;
identify(params: PostUserRequest): Promise<void>;
getUserAccountMetadata(): Promise<UserAccountMetadata>;
getUserAccountMetadata(): Promise<{
userAccountMetadata: UserAccountMetadata;
}>;
};

export const NotificationAPIClientSDK: NotificationAPIClientSDK = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@notificationapi/core",
"version": "0.0.11",
"version": "0.0.12",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down

0 comments on commit 7d789f2

Please sign in to comment.