Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Nov 7, 2024
1 parent 7558ff3 commit d7619a2
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 107 deletions.
9 changes: 6 additions & 3 deletions packages/connectors/src/coinbaseWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,13 @@ function version4(parameters: Version4Parameters) {
// Unwrapping import for Vite compatibility.
// See: https://github.com/vitejs/vite/issues/9703
const CoinbaseWalletSDK = await (async () => {
const { default: SDK } = await import('@coinbase/wallet-sdk')
if (typeof SDK !== 'function' && typeof SDK.default === 'function')
const SDK = await import('@coinbase/wallet-sdk')
if (
typeof SDK.CoinbaseWalletSDK !== 'function' &&
typeof SDK.default === 'function'
)
return SDK.default
return SDK as unknown as typeof SDK.default
return SDK.CoinbaseWalletSDK
})()

sdk = new CoinbaseWalletSDK({
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"zustand": "5.0.0"
},
"devDependencies": {
"@tanstack/query-core": "catalog:core"
"@tanstack/query-core": "catalog:"
},
"contributors": ["awkweb.eth <[email protected]>", "jxom.eth <[email protected]>"],
"funding": "https://github.com/sponsors/wevm",
Expand Down
14 changes: 7 additions & 7 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@
"use-sync-external-store": "1.2.0"
},
"devDependencies": {
"@tanstack/react-query": "catalog:react",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "catalog:react",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@tanstack/react-query": "catalog:",
"@testing-library/dom": "catalog:",
"@testing-library/react": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@types/use-sync-external-store": "^0.0.6",
"react": "catalog:react",
"react-dom": "catalog:react"
"react": "catalog:",
"react-dom": "catalog:"
},
"contributors": ["awkweb.eth <[email protected]>", "jxom.eth <[email protected]>"],
"funding": "https://github.com/sponsors/wevm",
Expand Down
6 changes: 3 additions & 3 deletions packages/register-tests/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"check:types": "tsc --noEmit"
},
"dependencies": {
"@tanstack/react-query": "catalog:react",
"react": "catalog:react",
"@tanstack/react-query": "catalog:",
"react": "catalog:",
"wagmi": "workspace:*"
},
"devDependencies": {
"@types/react": "catalog:react"
"@types/react": "catalog:"
}
}
4 changes: 2 additions & 2 deletions packages/register-tests/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"check:types": "tsc --noEmit"
},
"dependencies": {
"@tanstack/vue-query": "catalog:vue",
"@tanstack/vue-query": "catalog:",
"@wagmi/vue": "workspace:*",
"vue": "catalog:vue"
"vue": "catalog:"
}
}
18 changes: 9 additions & 9 deletions packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@
}
},
"devDependencies": {
"@tanstack/react-query": "catalog:react",
"@tanstack/vue-query": "catalog:vue",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "catalog:react",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@tanstack/react-query": "catalog:",
"@tanstack/vue-query": "catalog:",
"@testing-library/dom": "catalog:",
"@testing-library/react": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@wagmi/core": "workspace:*",
"@wagmi/vue": "workspace:*",
"react": "catalog:react",
"react-dom": "catalog:react",
"vue": "catalog:vue",
"react": "catalog:",
"react-dom": "catalog:",
"vue": "catalog:",
"wagmi": "workspace:*"
},
"contributors": ["awkweb.eth <[email protected]>", "jxom.eth <[email protected]>"],
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
},
"devDependencies": {
"@nuxt/schema": "^3.11.2",
"@tanstack/vue-query": "catalog:vue",
"@tanstack/vue-query": "catalog:",
"@vue/test-utils": "^2.4.6",
"nuxt": "^3.11.2",
"vue": "catalog:vue",
"vue": "catalog:",
"vue-tsc": "^2.0.6"
},
"contributors": ["awkweb.eth <[email protected]>", "jxom.eth <[email protected]>"],
Expand Down
Loading

0 comments on commit d7619a2

Please sign in to comment.