@dxtmisha/functional-basic
Version:
Core functional utility library for modern web development without framework dependencies
12 lines (11 loc) • 825 B
TypeScript
/**
* The method retrieves drag data (as a string) for the specified type.
* If the drag operation does not include data, this method returns an empty string.
*
* Метод извлекает данные перетаскивания (в виде строки) для указанного типа.
* @param event the ClipboardEvent interface represents events providing information
* related to modification of the clipboard, that is cut, copy, and paste events/ интерфейс
* ClipboardEvent представляет события, предоставляющие информацию, связанную с изменением буфера обмена,
* этими события являются cut, copy и paste.
*/
export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;