diff --git a/src/client.ts b/src/client.ts index ce90b28..2130557 100644 --- a/src/client.ts +++ b/src/client.ts @@ -88,8 +88,8 @@ type FetchOptions = { type Promisify = T extends (...args: any[]) => Promise ? T // already a promise : T extends (...args: infer A) => infer R - ? (...args: A) => Promise - : T; // not a function; + ? (...args: A) => Promise + : T; // not a function; type PromisifyMethods = { [K in keyof T]: Promisify; diff --git a/src/types.ts b/src/types.ts index 08a08ac..518a7b2 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,8 +5,6 @@ export interface JsonRpcRequest { params?: any[]; } - - export interface BaseJsonRpcResponse { jsonrpc: "2.0"; id: string | number | null; diff --git a/tsconfig.json b/tsconfig.json index b65f86d..8081a38 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,13 @@ { - "compilerOptions": { - "target": "es2022", - "moduleDetection": "force", - "module": "preserve", - "strict": true, - "noImplicitOverride": true, - "noEmit": true, - "esModuleInterop": true, - "skipLibCheck": true, - "verbatimModuleSyntax": true, - } -} \ No newline at end of file + "compilerOptions": { + "target": "es2022", + "moduleDetection": "force", + "module": "preserve", + "strict": true, + "noImplicitOverride": true, + "noEmit": true, + "esModuleInterop": true, + "skipLibCheck": true, + "verbatimModuleSyntax": true + } +}