We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60c0191 + 7b8f83e commit 1755863Copy full SHA for 1755863
src/useClipboard.ts
@@ -9,7 +9,7 @@ function setString(content: string) {
9
listeners.forEach(listener => listener(content))
10
}
11
12
-export default function useClipBoard() {
+export default function useClipBoard(): [string, (content: string) => void] {
13
const [data, updateClipboardData] = useState('')
14
15
// Get initial data
0 commit comments