Skip to content

Commit 4b91bb7

Browse files
committed
fix(api/baseline): add .ts extension to worker type import (#512)
The baseline worker import was missing the .ts extension required by TypeScript 6 with nodenext module resolution, causing a build failure.
1 parent 41625b3 commit 4b91bb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

routes/api/baseline/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { BackgroundTaskQueue } from "../../../utils/background-task-queue.js";
66
import { store } from "./lib/store-init.js";
77

88
const workerFile = path.join(import.meta.dirname, "update.worker.js");
9-
const taskQueue = new BackgroundTaskQueue<typeof import("./update.worker")>(
9+
const taskQueue = new BackgroundTaskQueue<typeof import("./update.worker.ts")>(
1010
workerFile,
1111
"baseline_update",
1212
);

0 commit comments

Comments
 (0)