Skip to content

Commit

Permalink
Fix fetchUsernames description
Browse files Browse the repository at this point in the history
  • Loading branch information
juangm committed Jan 9, 2025
1 parent def6b07 commit 0711334
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/client/src/actions/username.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,20 @@ export function fetchUsername(
}

/**
* Fetch usernames owned by an address.
* Fetch usernames.
* Example: fetch usernames owned by a specific address.
*
* ```ts
* const result = await fetchUsernames(anyClient, {
* owner: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'),
* filter: {
* owner: evmAddress('0xe2f2a5C287993345a840db3B0845fbc70f5935a5'),
* },
* });
* ```
*
* @param client - Any Lens client.
* @param request - The query request.
* @returns The list of owned usernames.
* @returns The list of usernames.
*/
export function fetchUsernames(
client: AnyClient,
Expand Down

0 comments on commit 0711334

Please sign in to comment.