File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
packages/backend/src/api/resources Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/backend ' : patch
3
+ ---
4
+
5
+ Add JSdoc comments for user methods.
Original file line number Diff line number Diff line change @@ -185,18 +185,30 @@ export class User {
185
185
return res ;
186
186
}
187
187
188
+ /**
189
+ * The primary email address of the user.
190
+ */
188
191
get primaryEmailAddress ( ) {
189
192
return this . emailAddresses . find ( ( { id } ) => id === this . primaryEmailAddressId ) ?? null ;
190
193
}
191
194
195
+ /**
196
+ * The primary phone number of the user.
197
+ */
192
198
get primaryPhoneNumber ( ) {
193
199
return this . phoneNumbers . find ( ( { id } ) => id === this . primaryPhoneNumberId ) ?? null ;
194
200
}
195
201
202
+ /**
203
+ * The primary web3 wallet of the user.
204
+ */
196
205
get primaryWeb3Wallet ( ) {
197
206
return this . web3Wallets . find ( ( { id } ) => id === this . primaryWeb3WalletId ) ?? null ;
198
207
}
199
208
209
+ /**
210
+ * The full name of the user.
211
+ */
200
212
get fullName ( ) {
201
213
return [ this . firstName , this . lastName ] . join ( ' ' ) . trim ( ) || null ;
202
214
}
You can’t perform that action at this time.
0 commit comments