Skip to content

Commit

Permalink
Remove not needed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
juangm committed Dec 11, 2024
1 parent 3cec1a5 commit 54816ab
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions packages/client/src/actions/username.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import type { Post, TimelineHighlightsRequest } from '@lens-protocol/graphql';
import type {
AssignUsernameToAccountRequest,
AssignUsernameToAccountResult,
CreateUsernameRequest,
CreateUsernameResult,
UnassignUsernameFromAccountRequest,
UnassignUsernameToAccountResult,
} from '@lens-protocol/graphql';
import {
AssignUsernameToAccountMutation,
CreateUsernameMutation,
TimelineHighlightsQuery,
UnassignUsernameFromAccountMutation,
} from '@lens-protocol/graphql';
import type { ResultAsync } from '@lens-protocol/types';

import type { CreateUsernameRequest } from '@lens-protocol/graphql';
import type { CreateUsernameResult } from '@lens-protocol/graphql';
import type { AssignUsernameToAccountRequest } from '@lens-protocol/graphql';
import type { AssignUsernameToAccountResult } from '@lens-protocol/graphql';
import type { UnassignUsernameFromAccountRequest } from '@lens-protocol/graphql';
import type { UnassignUsernameToAccountResult } from '@lens-protocol/graphql';
import type { AnyClient, SessionClient } from '../clients';
import type { SessionClient } from '../clients';
import type { UnauthenticatedError, UnexpectedError } from '../errors';
import type { Paginated } from '../types';

/**
* Create a username
Expand Down Expand Up @@ -55,7 +54,7 @@ export function createUsername(
* @returns Tiered transaction result.
*/
export function assignUsernameToAccount(
client: AnyClient,
client: SessionClient,
request: AssignUsernameToAccountRequest,
): ResultAsync<AssignUsernameToAccountResult, UnauthenticatedError | UnexpectedError> {
return client.mutation(AssignUsernameToAccountMutation, { request });
Expand All @@ -77,7 +76,7 @@ export function assignUsernameToAccount(
* @returns Tiered transaction result.
*/
export function unassignUsernameFromAccount(
client: AnyClient,
client: SessionClient,
request: UnassignUsernameFromAccountRequest,
): ResultAsync<UnassignUsernameToAccountResult, UnauthenticatedError | UnexpectedError> {
return client.query(UnassignUsernameFromAccountMutation, { request });
Expand Down

0 comments on commit 54816ab

Please sign in to comment.