Skip to content

Commit

Permalink
update a type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasadi committed Oct 24, 2024
1 parent f1c6047 commit 53e7e29
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 / pull_request_pipeline

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 53e7e29

Please sign in to comment.