fix: Fix global.FrameProcessorPlugins TS error

This commit is contained in:
Marc Rousavy 2023-02-15 19:15:36 +01:00
parent 0635d4aba0
commit 1f7a2e07f2
2 changed files with 1 additions and 6 deletions

View File

@ -13,6 +13,7 @@ type TFrameProcessorPlugins = Record<string, FrameProcessor>;
/** /**
* All natively installed Frame Processor Plugins. * All natively installed Frame Processor Plugins.
*/ */
// @ts-expect-error The global JSI Proxy object is not typed.
export const FrameProcessorPlugins = global.FrameProcessorPlugins as TFrameProcessorPlugins; export const FrameProcessorPlugins = global.FrameProcessorPlugins as TFrameProcessorPlugins;
const lastFrameProcessorCall = Worklets.createSharedValue(performance.now()); const lastFrameProcessorCall = Worklets.createSharedValue(performance.now());

6
src/globals.d.ts vendored
View File

@ -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<string | symbol, unknown> | undefined;