From a454995bb087b5fb647801e1d9a42d8c3dba6df5 Mon Sep 17 00:00:00 2001 From: Rahul Sethi <5822355+RamIdeas@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:59:11 +0100 Subject: [PATCH] avoid @ts-ignore --- packages/miniflare/src/workers/core/proxy.worker.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/miniflare/src/workers/core/proxy.worker.ts b/packages/miniflare/src/workers/core/proxy.worker.ts index 0283af16f59e..f7eb4fb1c742 100644 --- a/packages/miniflare/src/workers/core/proxy.worker.ts +++ b/packages/miniflare/src/workers/core/proxy.worker.ts @@ -68,15 +68,12 @@ function isPlainObject(value: unknown) { Object.getOwnPropertyNames(proto).sort().join("\0") === objectProtoNames ); } -function objectContainsFunctions(obj: Record): boolean { +function objectContainsFunctions(obj: Record): boolean { const propertyNames = Object.getOwnPropertyNames(obj); const propertySymbols = Object.getOwnPropertySymbols(obj); const properties = [...propertyNames, ...propertySymbols]; for (const property of properties) { - // @ts-ignore - ignoring the following line since TypeScript seems to - // incorrectly error if `property` is a symbol - // (see: https://github.com/Microsoft/TypeScript/issues/24587) const entry = obj[property]; if (typeof entry === "function") { return true;