From 1f7a2e07f26314464340d66f0c555e83dacb4ef7 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Wed, 15 Feb 2023 19:15:36 +0100 Subject: [PATCH] fix: Fix `global.FrameProcessorPlugins` TS error --- src/FrameProcessorPlugins.ts | 1 + src/globals.d.ts | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 src/globals.d.ts diff --git a/src/FrameProcessorPlugins.ts b/src/FrameProcessorPlugins.ts index d0550f7..42392fb 100644 --- a/src/FrameProcessorPlugins.ts +++ b/src/FrameProcessorPlugins.ts @@ -13,6 +13,7 @@ type TFrameProcessorPlugins = Record; /** * All natively installed Frame Processor Plugins. */ +// @ts-expect-error The global JSI Proxy object is not typed. export const FrameProcessorPlugins = global.FrameProcessorPlugins as TFrameProcessorPlugins; const lastFrameProcessorCall = Worklets.createSharedValue(performance.now()); diff --git a/src/globals.d.ts b/src/globals.d.ts deleted file mode 100644 index 94da873..0000000 --- a/src/globals.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* eslint-disable no-var */ - -/** - * The global Frame Processor plugins registry - will be initialized after the `installFrameProcessorBindings()` call - */ -declare var FrameProcessorPlugins: Record | undefined;