Skip to content

Commit 3b0a666

Browse files
committed
update bun version and types
1 parent 7aebbce commit 3b0a666

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

bun.lockb

68 Bytes
Binary file not shown.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"license": "MIT",
1515
"type": "module",
1616
"devDependencies": {
17-
"@types/react": "^18.2.48",
18-
"@types/react-dom": "^18.2.18",
19-
"@types/web": "^0.0.136",
20-
"bun-plugin-dts": "^0.2.1",
17+
"@types/bun": "^1.1.6",
18+
"@types/react": "^18.3.3",
19+
"@types/react-dom": "^18.3.0",
20+
"bun-plugin-dts": "^0.2.3",
2121
"bun-types": "latest"
2222
},
2323
"peerDependencies": {
24-
"typescript": "^5.0.0",
24+
"typescript": "^5.2.2",
2525
"react": "^19.0.0-rc-cc1ec60d0d-20240607",
2626
"react-dom": "^19.0.0-rc-cc1ec60d0d-20240607"
2727
},

router/components/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JSXElementConstructor } from "react";
1+
import type { JSXElementConstructor } from "react";
22
import { useLink } from "..";
33

44
export function Link<

tsconfig.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
22
"compilerOptions": {
3-
"lib": ["ESNext"],
4-
"module": "esnext",
5-
"target": "esnext",
6-
"moduleResolution": "bundler",
3+
// Enable latest features
4+
"lib": ["ESNext", "DOM"],
5+
"target": "ESNext",
6+
"module": "ESNext",
77
"moduleDetection": "force",
8+
"jsx": "react-jsx",
9+
"allowJs": true,
10+
11+
// Bundler mode
12+
"moduleResolution": "bundler",
813
"allowImportingTsExtensions": true,
14+
"verbatimModuleSyntax": true,
915
"noEmit": true,
10-
"composite": true,
16+
17+
// Best practices
1118
"strict": true,
12-
"downlevelIteration": true,
1319
"skipLibCheck": true,
14-
"jsx": "react-jsx",
15-
"allowSyntheticDefaultImports": true,
16-
"forceConsistentCasingInFileNames": true,
17-
"allowJs": true,
18-
"types": [
19-
"web",
20-
"bun-types" // add Bun global
21-
],
22-
"paths": {
23-
"bun-react-ssr": ["./index.tsx"],
24-
"bun-react-ssr/*": ["./*"]
25-
}
20+
"noFallthroughCasesInSwitch": true,
21+
22+
// Some stricter flags (disabled by default)
23+
"noUnusedLocals": false,
24+
"noUnusedParameters": false,
25+
"noPropertyAccessFromIndexSignature": false
2626
}
2727
}

0 commit comments

Comments
 (0)