Skip to content

Commit

Permalink
Fix typescript config and StatusError Type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Jul 7, 2024
1 parent 420ec07 commit 7cb1458
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/types/RouterOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StatusError } from 'StatusError'
import { StatusError } from '../StatusError'
import { ErrorHandler } from './ErrorHandler'
import { IRequest } from './IRequest'
import { IttyRouterOptions } from './IttyRouterOptions'
Expand Down
2 changes: 1 addition & 1 deletion src/types/RouterType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StatusError } from 'StatusError'
import { StatusError } from '../StatusError'
import { ErrorHandler } from './ErrorHandler'
import { IRequest } from './IRequest'
import { IttyRouterType } from './IttyRouterType'
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"baseUrl": "src",
"declaration": true,
"sourceMap": true,
"esModuleInterop": true,
Expand All @@ -12,15 +11,13 @@
"listFiles": false,
"noFallthroughCasesInSwitch": true,
"pretty": true,
// "moduleResolution": "nodeNext", // disabled to be compatible with module: "esnext"
// "resolveJsonModule": true, // disabled to be compatible with module: "esnext"
"rootDir": "src",
"skipLibCheck": true,
"strict": true,
"traceResolution": false,
"outDir": "",
"target": "esnext",
"module": "esnext",
"module": "Preserve",
"types": ["@cloudflare/workers-types", "@types/node"]
},
"exclude": ["node_modules", "dist", "**/*.spec.ts", "examples"],
Expand Down

0 comments on commit 7cb1458

Please sign in to comment.