Skip to content

Commit a1bbcce

Browse files
authored
Merge branch 'main' into fix/jsonify/support-unknown
2 parents 9b4652b + b5b0214 commit a1bbcce

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
matrix:
3535
typescript-version:
3636
- 'latest'
37-
- '~5.8.0'
37+
- '~5.9.0'
3838
steps:
3939
- uses: actions/checkout@v4
4040
- uses: actions/setup-node@v4

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
"tagged-tag": "^1.0.0"
5353
},
5454
"devDependencies": {
55-
"@sindresorhus/tsconfig": "^7.0.0",
56-
"expect-type": "^1.2.1",
57-
"npm-run-all2": "^8.0.1",
58-
"tsd": "^0.32.0",
59-
"typescript": "~5.8.3",
60-
"xo": "^1.0.5"
55+
"@sindresorhus/tsconfig": "^8.0.1",
56+
"expect-type": "^1.2.2",
57+
"npm-run-all2": "^8.0.4",
58+
"tsd": "^0.33.0",
59+
"typescript": "^5.9.2",
60+
"xo": "^1.2.1"
6161
},
6262
"tsd": {
6363
"compilerOptions": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ PR welcome for additional commonly needed types and docs improvements. Read the
5555
npm install type-fest
5656
```
5757

58-
*Requires TypeScript >=5.8, [ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c), and [`{strict: true}`](https://www.typescriptlang.org/tsconfig#strict) in your tsconfig.*
58+
*Requires TypeScript >=5.9, [ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c), and [`{strict: true}`](https://www.typescriptlang.org/tsconfig#strict) in your tsconfig.*
5959

6060
> [!NOTE]
6161
> This readme shows the current development version. For docs about the latest version, see the [npm page](https://www.npmjs.com/package/type-fest).

source/tsconfig-json.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ declare namespace TsConfigJson {
1919
| 'ESNext'
2020
| 'Node16'
2121
| 'Node18'
22+
| 'Node20'
2223
| 'NodeNext'
2324
| 'Preserve'
2425
| 'None'
@@ -34,6 +35,7 @@ declare namespace TsConfigJson {
3435
| 'esnext'
3536
| 'node16'
3637
| 'node18'
38+
| 'node20'
3739
| 'nodenext'
3840
| 'preserve'
3941
| 'none';

tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@
44
"noEmit": true,
55
"allowJs": true,
66
"noUnusedLocals": false, // Allow unused variables in test-d/*.ts files
7-
"module": "node18",
8-
"target": "ES2023", // Node.js 20
9-
"lib": [
10-
"ES2023",
11-
"DOM"
12-
],
137
"types": [], // Ensures no @types/ are unintentionally included
148
"exactOptionalPropertyTypes": true,
159
"skipLibCheck": false, // Ensures .d.ts files are checked: https://github.com/sindresorhus/tsconfig/issues/15
10+
"erasableSyntaxOnly": false // We cannot do this as we need to be able to test enums.
1611
}
1712
}

0 commit comments

Comments
 (0)