From ad151b387082e7c7848826616a5176df675b6e94 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Thu, 6 May 2021 16:12:43 +0200 Subject: [PATCH] Revert "Update globals.d.ts" This reverts commit c81a9e47995a3ab711ed624e8f560647ef690168. --- src/globals.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) */