Skip to content

Commit 26c1107

Browse files
authored
Port dev config files to TypeScript (#1020)
Why didn't I just write these in TypeScript in the first place...
1 parent a1c6f38 commit 26c1107

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed
File renamed without changes.

package-lock.json

Lines changed: 12 additions & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"eslint-plugin-jsdoc": "^61.1.12",
2828
"eslint-plugin-prettier": "^5.5.4",
2929
"globals": "^16.0.0",
30+
"jiti": "^2.6.1",
3031
"jsdoc": "^4.0.2",
3132
"jsdom": "^27.0.0",
3233
"typescript": "^5.9.2",

test/setup/ros-backend.js renamed to test/setup/ros-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function getRosDistro() {
2121
}
2222

2323
async function waitForRosConnection(ros, timeout = 5000) {
24-
return new Promise((resolve, reject) => {
24+
return new Promise<void>((resolve, reject) => {
2525
const timeoutId = setTimeout(() => {
2626
reject(new Error("Timeout waiting for ROS connection"));
2727
}, timeout);
File renamed without changes.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"vite.config.ts",
88
"./src",
99
"./test",
10-
"eslint.config.js",
10+
"eslint.config.ts",
1111
"examples"
1212
]
1313
}

0 commit comments

Comments
 (0)