amis-rpc-design/node_modules/react-native/Libraries/Components/Clipboard/Clipboard.d.ts
2023-10-07 19:42:30 +08:00

29 lines
968 B
TypeScript

/**
* 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.
*
* @format
*/
export interface ClipboardStatic {
getString(): Promise<string>;
setString(content: string): void;
}
/**
* Clipboard has been extracted from react-native core and will be removed in a future release.
* It can now be installed and imported from `@react-native-community/clipboard` instead of 'react-native'.
* @see https://github.com/react-native-community/clipboard
* @deprecated
*/
export const Clipboard: ClipboardStatic;
/**
* Clipboard has been extracted from react-native core and will be removed in a future release.
* It can now be installed and imported from `@react-native-community/clipboard` instead of 'react-native'.
* @see https://github.com/react-native-community/clipboard
* @deprecated
*/
export type Clipboard = ClipboardStatic;