vegan-ipsum
Version:
Generates passages of vegan-themed placeholder text suitable for use in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
10 lines (9 loc) • 436 B
TypeScript
/**
* Copies the provided text to the clipboard using the platform's native command.
*
* @param {string} text - The text to copy to the clipboard.
* @returns {Promise<string>} A promise that resolves with the copied text, or rejects with an error.
* @throws {Error} If the platform is not supported or if the copy command fails.
*/
declare const copyToClipboard: (text: string) => Promise<string>;
export default copyToClipboard;