Skip to content

Commit

Permalink
fix: remove aliases from types (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessey authored Jan 27, 2025
1 parent 7f2fb3f commit bf4cf8c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ export type {
GetTokensResponse,
GetPortfoliosParams,
GetPortfoliosResponse,
TokenDetails,
MintDetails,
} from './types';
10 changes: 5 additions & 5 deletions src/nft/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export type {
NFTMintCardReact,
NFTMintCardDefaultReact,
UseNFTData,
} from '@/nft/types';
export type { NFTError } from '@/api/types';
} from './types';
export type { NFTError } from '../api/types';

// Hooks
export { useTokenDetails } from '@/nft/hooks/useTokenDetails';
export { useMintDetails } from '@/nft/hooks/useMintDetails';
export { useTokenDetails } from './hooks/useTokenDetails';
export { useMintDetails } from './hooks/useMintDetails';
export type {
UseTokenDetailsParams,
UseMintDetailsParams,
} from '@/nft/types';
} from './types';
10 changes: 5 additions & 5 deletions src/nft/types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { UseQueryOptions } from '@tanstack/react-query';
import type { ReactNode } from 'react';
import type { Address, Hex, TransactionReceipt } from 'viem';
import type {
ContractType,
GetMintDetailsParams,
GetTokenDetailsParams,
NFTError,
NFTPrice,
} from '@/api/types';
import type { LifecycleStatusUpdate } from '@/internal/types';
import type { UseQueryOptions } from '@tanstack/react-query';
import type { ReactNode } from 'react';
import type { Address, Hex, TransactionReceipt } from 'viem';
} from '../api/types';
import type { LifecycleStatusUpdate } from '../internal/types';
import type { Call } from '../transaction/types';

export enum MediaType {
Expand Down
4 changes: 2 additions & 2 deletions src/transaction/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// 🌲☀🌲
import type { TransactionError } from '@/api/types';
import type { ReactNode } from 'react';
import type {
Address,
Expand All @@ -10,6 +8,8 @@ import type {
import type { WalletCapabilities as ViemWalletCapabilities } from 'viem';
import type { Config } from 'wagmi';
import type { SendTransactionMutateAsync } from 'wagmi/query';
// 🌲☀🌲
import type { TransactionError } from '../api/types';

export type Call = { to: Hex; data?: Hex; value?: bigint };

Expand Down

0 comments on commit bf4cf8c

Please sign in to comment.