fix: Fix global.FrameProcessorPlugins
TS error
This commit is contained in:
parent
0635d4aba0
commit
1f7a2e07f2
@ -13,6 +13,7 @@ type TFrameProcessorPlugins = Record<string, FrameProcessor>;
|
||||
/**
|
||||
* 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());
|
||||
|
6
src/globals.d.ts
vendored
6
src/globals.d.ts
vendored
@ -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;
|
Loading…
Reference in New Issue
Block a user