Skip to content

Commit

Permalink
chore: Fix TypeScript config to allow ES2022
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Mar 2, 2024
1 parent 03cc513 commit 1e4c3ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/retrier.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ export class Retrier {

try {
result = fn();
} catch (error) {
// @ts-ignore TS doesn't know about the second argument to Error?
} catch (/** @type {any} */ error) {
return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error }));
}

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"allowJs": true,
"checkJs": true,
"target": "ES2022",
"lib": ["ESNext"],
"moduleResolution": "NodeNext",
"outDir": "dist",
"types": ["node"]
Expand Down

0 comments on commit 1e4c3ca

Please sign in to comment.