Skip to content

Commit 1755863

Browse files
authored
Merge pull request #82 from react-native-community/chore/specifyTypeforClipboard
chore: specify type for clipboard
2 parents 60c0191 + 7b8f83e commit 1755863

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)