UNPKG

442 BTypeScriptView Raw
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9
10import type * as React from 'react';
11
12export type NodeHandle = number;
13
14export function findNodeHandle(
15 componentOrHandle:
16 | null
17 | number
18 | React.Component<any, any>
19 | React.ComponentClass<any>,
20): null | NodeHandle;