Skip to content

Commit

Permalink
style: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
fgnass committed Oct 23, 2024
1 parent 429d598 commit 7a28442
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ type FetchOptions = {
type Promisify<T> = T extends (...args: any[]) => Promise<any>
? T // already a promise
: T extends (...args: infer A) => infer R
? (...args: A) => Promise<R>
: T; // not a function;
? (...args: A) => Promise<R>
: T; // not a function;

type PromisifyMethods<T extends object> = {
[K in keyof T]: Promisify<T[K]>;
Expand Down
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export interface JsonRpcRequest {
params?: any[];
}



export interface BaseJsonRpcResponse {
jsonrpc: "2.0";
id: string | number | null;
Expand Down
24 changes: 12 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"compilerOptions": {
"target": "es2022",
"moduleDetection": "force",
"module": "preserve",
"strict": true,
"noImplicitOverride": true,
"noEmit": true,
"esModuleInterop": true,
"skipLibCheck": true,
"verbatimModuleSyntax": true,
}
}
"compilerOptions": {
"target": "es2022",
"moduleDetection": "force",
"module": "preserve",
"strict": true,
"noImplicitOverride": true,
"noEmit": true,
"esModuleInterop": true,
"skipLibCheck": true,
"verbatimModuleSyntax": true
}
}

0 comments on commit 7a28442

Please sign in to comment.