Files
NapCatQQ/.pnpm-store/v3/files/9a/b1aa240119a4129af8e686d8b0cd990b755abb3971d0b6c403472e06300d5e99fc999e6e3bfaa8aeefe507e2f71cdc553afa7579cdc3761359246181a9ccb2
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
671 B
Plaintext

interface UseClipboardProps {
/**
* The time in milliseconds to wait before resetting the clipboard.
* @default 2000
*/
timeout?: number;
}
/**
* Copies the given text to the clipboard.
* @param {number} timeout - timeout in ms, default 2000
* @returns {copy, copied, error, reset} - copy function, copied state, error state, reset function
*/
declare function useClipboard({ timeout }?: UseClipboardProps): {
copy: (valueToCopy: any) => void;
reset: () => void;
error: Error | null;
copied: boolean;
};
type UseClipboardReturn = ReturnType<typeof useClipboard>;
export { UseClipboardProps, UseClipboardReturn, useClipboard };