'use strict'; import type { SharedValue } from './commonTypes'; export function isSharedValue( value: unknown ): value is SharedValue { 'worklet'; // We cannot use `in` operator here because `value` could be a HostObject and therefore we cast. return (value as Record)?._isReanimatedSharedValue === true; }