/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import * as React from 'react'; export type CallbackRef = (node: T | null) => unknown; export type ObjectRef = { current: T }; export type Ref = | CallbackRef | ObjectRef | /** * > 14 | export type Ref = CallbackRef | ObjectRef | React.RefObject; * | ^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "React.RefObject" is currently not supported. **/ any;