Skip to content

Commit b28cfc0

Browse files
authored
Works around bad Keystone types (#902)
1 parent 299f9bc commit b28cfc0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/keystone/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,12 @@ function keystone({
127127
return accounts
128128
}
129129

130-
const request: EIP1193Provider['request'] = async ({
130+
const request = async ({
131131
method,
132132
params
133+
}: {
134+
method: string
135+
params: any
133136
}) => {
134137
const response = await fetch(currentChain.rpcUrl, {
135138
method: 'POST',

packages/keystone/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"extends": "../../tsconfig.json",
33
"include": ["src/**/*"],
4-
54
"compilerOptions": {
65
"outDir": "dist",
76
"rootDir": "src",
87
"declarationDir": "dist",
98
"paths": {
109
"*": ["./src/*", "./node_modules/*"]
1110
},
12-
"typeRoots": ["node_modules/@types"]
11+
"typeRoots": ["node_modules/@types"],
12+
"strict": false
1313
}
1414
}

0 commit comments

Comments
 (0)