From 931f23d360f86ace209391db3278e4e636f2c83c Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Tue, 28 Feb 2023 19:46:18 -0800 Subject: [PATCH] Fix typecheck --- test/bun.js/inspect.test.js | 2 +- tsconfig.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/bun.js/inspect.test.js b/test/bun.js/inspect.test.js index 243f23cdc4..024a976a3d 100644 --- a/test/bun.js/inspect.test.js +++ b/test/bun.js/inspect.test.js @@ -275,7 +275,7 @@ const fixture = [ }), () => require("events"), () => { - return new import.meta.require("events").EventEmitter(); + return new (import.meta.require("events").EventEmitter)(); }, async () => await import("node:assert"), async () => await import("./empty.js"), diff --git a/tsconfig.json b/tsconfig.json index 2777ef03fa..518dca2c16 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,8 +18,11 @@ "examples/macros", "test/bun.js/solid-dom-fixtures", "test/bun.js/bundled", + "src/deps", + "bun-webkit", // JavaScriptCore builtins use a non-standard "@" symbol to indicate a private identifier which no other tool supports "src/bun.js/builtins", + "src/bun.js/WebKit", "src/api/demo", "test/snapshots", "test/snapshots-no-hmr",