Skip to content

Commit

Permalink
fix(typings): remove Error.cause type which conflicts with es2022
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtGokhan committed Aug 8, 2023
1 parent 66e5e0a commit 1701e18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions packages/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ declare global {
interface Window {
__TSR_DEHYDRATED__?: HydrationCtx
}

interface Error {
cause: unknown
}

interface ErrorConstructor {
new (reason: string, options?: { cause?: unknown }): Error
}
}

export interface Register {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "node",
Expand Down

0 comments on commit 1701e18

Please sign in to comment.