Skip to content

Commit

Permalink
chore: specify type for clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Mar 17, 2020
1 parent 60c0191 commit 7b8f83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useClipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function setString(content: string) {
listeners.forEach(listener => listener(content))
}

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

// Get initial data
Expand Down

0 comments on commit 7b8f83e

Please sign in to comment.