Skip to content

Commit e529ab2

Browse files
committed
update types for loginUserWithUserAttributes
1 parent 095b38f commit e529ab2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export type IntercomType = {
117117
* Valid identifiers are `userId` and `email` which must be set in the {@link UserAttributes} object.
118118
* @param params The {@link UserAttributes} object that contains the user's `email` or `userId`.
119119
*/
120-
loginUserWithUserAttributes: (params: UserAttributes) => Promise<boolean>;
120+
loginUserWithUserAttributes: (
121+
params: Pick<UserAttributes, 'email' | 'userId'>
122+
) => Promise<boolean>;
121123

122124
/**
123125
* Log a user out of their Intercom session.

0 commit comments

Comments
 (0)