Skip to content

Commit 4102b1f

Browse files
authored
feat: update to TypeScript 5.8 (#44)
Closes #42 This PR sets the recently released TypeScript 5.8 version as the highest known supported version. It also updates the README to mention the new and exciting `erasableSyntaxOnly` flag. Signed-off-by: Ashley Claymore <[email protected]>
1 parent bd999bc commit 4102b1f

File tree

4 files changed

+27
-16
lines changed

4 files changed

+27
-16
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ When unsupported syntax is encountered, `ts-blank-space` will call the optional
237237
// Because imports and exports are preserved as written, only removing the
238238
// parts which are explicitly annotated with the `type` keyword
239239
"verbatimModuleSyntax": true,
240+
// As of `[email protected]` there is a built-in check to error on the non-erasable
241+
// syntax that tools such as `ts-blank-space` don't support e.g. parameter properties.
242+
"erasableSyntaxOnly": true,
240243
}
241244
```
242245

package-lock.json

Lines changed: 21 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ts-blank-space",
33
"description": "A small, fast, pure JavaScript type-stripper that uses the official TypeScript parser.",
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"license": "Apache-2.0",
66
"homepage": "https://bloomberg.github.io/ts-blank-space",
77
"contributors": [
@@ -23,7 +23,7 @@
2323
},
2424
"types": "./out/index.d.ts",
2525
"dependencies": {
26-
"typescript": "5.1.6 - 5.7.x"
26+
"typescript": "5.1.6 - 5.8.x"
2727
},
2828
"imports": {
2929
"#r": "ts-blank-space-lkg/register"

src/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"moduleDetection": "force",
77
"verbatimModuleSyntax": true,
88
"useDefineForClassFields": true,
9+
"erasableSyntaxOnly": true,
910
"declaration": true,
1011
"declarationDir": "../out"
1112
},

0 commit comments

Comments
 (0)