Skip to content

Commit c80e56e

Browse files
⬆️ Bump to TypeScript 6 (#135)
1 parent 01bf8d7 commit c80e56e

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

bun.lock

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
"lint-staged": "^16.2.7",
356356
"path-browserify": "^1.0.1",
357357
"sinon": "^21.0.1",
358-
"typescript": "^5.0.0"
358+
"typescript": "^6.0.2"
359359
},
360360
"dependencies": {
361361
"posthog-node": "^5.24.1",

src/core/parser.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export class Parser {
1818
}
1919

2020
// Pre-compile the Wasm module from the binary
21-
const wasmModule = await WebAssembly.compile(wasmBinaries.core)
21+
const wasmModule = await WebAssembly.compile(
22+
wasmBinaries.core as Uint8Array<ArrayBuffer>,
23+
)
2224

2325
// Use instantiateWasm to provide custom Wasm instantiation.
2426
// This bypasses tree-sitter's default URL-based loading which relies

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"noUnusedLocals": true,
1616
"noUnusedParameters": true,
1717
"noImplicitReturns": true,
18-
"noFallthroughCasesInSwitch": true
18+
"noFallthroughCasesInSwitch": true,
19+
"types": ["node", "mocha"]
1920
},
2021
"include": ["src/**/*"],
2122
"exclude": ["node_modules", ".vscode-test"]

0 commit comments

Comments
 (0)