Skip to content

Commit

Permalink
fix: make connector imports type-only (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed May 8, 2024
1 parent b3cb0cf commit 204b7b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .changeset/pink-spiders-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wagmi/connectors": patch
"@wagmi/core": patch
"wagmi": patch
---

Made third-party SDK imports type-only.
6 changes: 3 additions & 3 deletions packages/connectors/src/coinbaseWallet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
type CoinbaseWalletProvider,
type CoinbaseWalletSDK,
import type {
CoinbaseWalletProvider,
CoinbaseWalletSDK,
} from '@coinbase/wallet-sdk'
import {
ChainNotConfiguredError,
Expand Down
8 changes: 4 additions & 4 deletions packages/connectors/src/metaMask.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
type MetaMaskSDK,
type MetaMaskSDKOptions,
type SDKProvider,
import type {
MetaMaskSDK,
MetaMaskSDKOptions,
SDKProvider,
} from '@metamask/sdk'
import { ChainNotConfiguredError, createConnector } from '@wagmi/core'
import type { Evaluate, ExactPartial } from '@wagmi/core/internal'
Expand Down
4 changes: 2 additions & 2 deletions packages/connectors/src/safe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type SafeAppProvider } from '@safe-global/safe-apps-provider'
import { type Opts } from '@safe-global/safe-apps-sdk'
import type { SafeAppProvider } from '@safe-global/safe-apps-provider'
import type { Opts } from '@safe-global/safe-apps-sdk'
import {
type Connector,
ProviderNotFoundError,
Expand Down
2 changes: 1 addition & 1 deletion packages/connectors/src/walletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
type ExactPartial,
type Omit,
} from '@wagmi/core/internal'
import { type EthereumProvider } from '@walletconnect/ethereum-provider'
import type { EthereumProvider } from '@walletconnect/ethereum-provider'
import {
type AddEthereumChainParameter,
type Address,
Expand Down

0 comments on commit 204b7b6

Please sign in to comment.