diff --git a/src/globals.d.ts b/src/globals.d.ts index 79e59f1..b09a6d8 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -1,5 +1,18 @@ /* eslint-disable no-var */ +/** + * `true` if currently running in a Frame Processor runtime + */ +declare var _FRAME_PROCESSOR: true | undefined; +/** + * `true` if currently running in a reanimated UI runtime + */ +declare var _UI: true | undefined; +/** + * `true` if currently running in a Worklet runtime (frame processor, multithreading, reanimated) + */ +declare var _WORKLET: true | undefined; + /** * A native logging function (outputs to Xcode console/Android Logcat) */