Skip to content

Commit 7b8f83e

Browse files
committed
chore: specify type for clipboard
1 parent 60c0191 commit 7b8f83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useClipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function setString(content: string) {
99
listeners.forEach(listener => listener(content))
1010
}
1111

12-
export default function useClipBoard() {
12+
export default function useClipBoard(): [string, (content: string) => void] {
1313
const [data, updateClipboardData] = useState('')
1414

1515
// Get initial data

0 commit comments

Comments
 (0)